pages = defaultPages.getDefaultPagesFor("/a/b");
assertTrue(pages.isEmpty());
}
public void testAddPartlyOverlappingLocalDefaultsOk() throws Exception {
DefaultPages defaultPages = parseDefaultPages("/a=b.html, /a/b=c.html, /a/b/c=d.html, default.html");
Collection<String> pages;
pages = defaultPages.getDefaultPagesFor("/");
assertTrue(pages.contains("/default.html"));
pages = defaultPages.getDefaultPagesFor("/a");
assertTrue(pages.contains("/a/b.html"));
pages = defaultPages.getDefaultPagesFor("/a/b");
assertTrue(pages.contains("/a/b/c.html"));
pages = defaultPages.getDefaultPagesFor("/a/b/c");
assertTrue(pages.contains("/a/b/c/d.html"));
pages = defaultPages.getDefaultPagesFor("/a/b/c/d");
assertTrue(pages.contains("/a/b/c/d/default.html"));
pages = defaultPages.getDefaultPagesFor("/c");
assertTrue(pages.contains("/c/default.html"));
}