You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2004/09/22 04:02:35 UTC
cvs commit: jakarta-commons/io/src/test/org/apache/commons/io/find FileFinderTest.java
bayard 2004/09/21 19:02:35
Modified: io/src/test/org/apache/commons/io/find FileFinderTest.java
Log:
still had old subversion tests in. switched to ignore CVS directory and to expect an extra file in the type test
Revision Changes Path
1.2 +4 -2 jakarta-commons/io/src/test/org/apache/commons/io/find/FileFinderTest.java
Index: FileFinderTest.java
===================================================================
RCS file: /home/cvs/jakarta-commons/io/src/test/org/apache/commons/io/find/FileFinderTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FileFinderTest.java 17 Sep 2004 00:14:49 -0000 1.1
+++ FileFinderTest.java 22 Sep 2004 02:02:35 -0000 1.2
@@ -39,7 +39,7 @@
public void setUp() {
finder = new FileFinder();
options = new HashMap();
- options.put(Finder.NOT+Finder.PATH, "*.svn*");
+ options.put(Finder.NOT+Finder.PATH, "*CVS*");
// uncomment for debugging
// finder.addFindListener( new DebugListener() );
}
@@ -102,10 +102,12 @@
assertEquals(1, files.length);
}
+ // finds one in file and also one in dir as
+ // CVS needs a file in dir for people to commonly have it checked out
public void testFindTypeF() {
options.put(Finder.TYPE, "f");
File[] files = finder.find(new File(dir, "type"), options);
- assertEquals(1, files.length);
+ assertEquals(2, files.length);
}
public void testFindTypeD() {
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org