Filter filter = new IncludeExcludeFilter(Filters.packages("org.foo", "org.bar"), Filters.packages("org.foo.util"));
assertTrue(filter.accept("org.foo.Red"));
assertTrue(filter.accept("org.bar.Red"));
assertFalse(filter.accept("com.bar.Red"));
assertFalse(filter.accept("org.foo.util.Blue"));
}
public void testExcludeInclude() {
Filter filter = new ExcludeIncludeFilter(Filters.packages("org.foo.util"), Filters.packages("org.foo", "org.bar"));