private String getActionsHtml(String pageName) {
WikiPageUtil.addPage(root, PathParser.parse(pageName), "");
HtmlPage htmlPage = context.pageFactory.newPage();
htmlPage.setNavTemplate("wikiNav.vm");
htmlPage.put("actions", new WikiPageActions(root.getChildPage(pageName)));
return htmlPage.html();
}
private void verifyDefaultLinks(String html, String pageName) {
assertSubString("<a href=\"" + pageName + "?edit\" accesskey=\"e\">Edit</a>", html);
assertSubString("<a href=\"" + pageName + "?versions\" accesskey=\"v\">Versions</a>", html);