Skip to content

Commit c7cb6d1

Browse files
committed
still had old subversion tests in. switched to ignore CVS directory and to expect an extra file in the type test
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140603 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4fbac94 commit c7cb6d1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/org/apache/commons/io/find/FileFinderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public FileFinderTest(String name) {
3939
public void setUp() {
4040
finder = new FileFinder();
4141
options = new HashMap();
42-
options.put(Finder.NOT+Finder.PATH, "*.svn*");
42+
options.put(Finder.NOT+Finder.PATH, "*CVS*");
4343
// uncomment for debugging
4444
// finder.addFindListener( new DebugListener() );
4545
}
@@ -102,10 +102,12 @@ public void testFindSize() {
102102
assertEquals(1, files.length);
103103
}
104104

105+
// finds one in file and also one in dir as
106+
// CVS needs a file in dir for people to commonly have it checked out
105107
public void testFindTypeF() {
106108
options.put(Finder.TYPE, "f");
107109
File[] files = finder.find(new File(dir, "type"), options);
108-
assertEquals(1, files.length);
110+
assertEquals(2, files.length);
109111
}
110112

111113
public void testFindTypeD() {

0 commit comments

Comments
 (0)