assertFalse(mapped.contains("/content/geometrixx/en/products/foo"));
}
@Test
public void testRelativePatterns() {
PathFilterSet set1 = new PathFilterSet("/foo");
set1.addInclude(new DefaultPathFilter("/foo/.*"));
set1.addInclude(new DefaultPathFilter("/bar/.*"));
set1.seal();
assertFalse(set1.hasOnlyRelativePatterns());
PathFilterSet set2 = new PathFilterSet("/foo");
set2.addInclude(new DefaultPathFilter(".*/foo/.*"));
set2.addInclude(new DefaultPathFilter(".*/bar/.*"));
set2.seal();
assertTrue(set2.hasOnlyRelativePatterns());
PathFilterSet set3 = new PathFilterSet("/foo");
set3.addInclude(new DefaultPathFilter(".*/foo/.*"));
set3.addInclude(new DefaultPathFilter("/.*/bar/.*"));
set3.seal();
assertFalse(set3.hasOnlyRelativePatterns());
}