Skip to main content
path: root/tests
diff options
authorAndre Weinand2005-06-07 20:23:48 +0000
committerAndre Weinand2005-06-07 20:23:48 +0000
commita44e5917be7ff121817f43ee1e3c92d46d18bb5c (patch)
treed5cdfcbbae1b1884bcbcb44b5f331b38171b4bf5 /tests
parent5024f785872b68b86965cad1447c86b58c29e4c3 (diff)
added test case for #98828: CompareFilter bug filtering folders
Diffstat (limited to 'tests')
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ b/tests/
index 4de8efbe1..73418350c 100644
--- a/tests/
+++ b/tests/
@@ -46,13 +46,15 @@ public class FilterTest extends TestCase {
public void testMultiFilter() {
CompareFilter f= new CompareFilter();
- f.setFilters("*.class, .cvsignore, bin/"); //$NON-NLS-1$
+ f.setFilters("*.class, .cvsignore, bin/, src/"); //$NON-NLS-1$
Assert.assertTrue("file foo.class should be filtered", f.filter("foo.class", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
Assert.assertFalse("file shouldn't be filtered", f.filter("", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
Assert.assertTrue("file .cvsignore should be filtered", f.filter(".cvsignore", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
Assert.assertFalse("file foo.cvsignore shouldn't be filtered", f.filter("foo.cvsignore", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
Assert.assertTrue("folder bin should be filtered", f.filter("bin", true, false)); //$NON-NLS-1$ //$NON-NLS-2$
Assert.assertFalse("file bin shouldn't be filtered", f.filter("bin", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
+ Assert.assertTrue("folder src should be filtered", f.filter("src", true, false)); //$NON-NLS-1$ //$NON-NLS-2$
+ Assert.assertFalse("file src shouldn't be filtered", f.filter("src", false, false)); //$NON-NLS-1$ //$NON-NLS-2$
public void testVerify() {

Back to the top