Пример #1
0
 @Test
 public void testCanFindExistingPages() throws Exception {
   WikiPageUtil.addPage(root, PathParser.parse("FrontPage"), "front page");
   WikiPage newRoot =
       new FileSystemPageFactory()
           .makePage(new File(base, "RooT"), "RooT", null, new SystemVariableSource());
   assertNotNull(newRoot.getChildPage("FrontPage"));
 }
 @Test
 public void testCanFindExistingPages() throws Exception {
   crawler.addPage(root, PathParser.parse("FrontPage"), "front page");
   WikiPage newRoot = new FileSystemPage(defaultPath, "RooT");
   assertNotNull(newRoot.getChildPage("FrontPage"));
 }