Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2005-06-07 16:23:48 -0400
committerAndre Weinand2005-06-07 16:23:48 -0400
commita44e5917be7ff121817f43ee1e3c92d46d18bb5c (patch)
treed5cdfcbbae1b1884bcbcb44b5f331b38171b4bf5
parent5024f785872b68b86965cad1447c86b58c29e4c3 (diff)
downloadeclipse.platform.team-a44e5917be7ff121817f43ee1e3c92d46d18bb5c.tar.gz
eclipse.platform.team-a44e5917be7ff121817f43ee1e3c92d46d18bb5c.tar.xz
eclipse.platform.team-a44e5917be7ff121817f43ee1e3c92d46d18bb5c.zip
added test case for #98828: CompareFilter bug filtering folders
-rw-r--r--tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java
index 4de8efbe1..73418350c 100644
--- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java
+++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java
@@ -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 foo.java shouldn't be filtered", f.filter("foo.java", 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