@Test public void testParseNoWikiBlockEmpty() { WikiPageNode wikiPageNode = getWikiPageNode("nowikiblock-3.creole"); NoWikiSectionNode noWikiSectionNode = (NoWikiSectionNode) wikiPageNode.getChildASTNode(0); Assert.assertEquals(StringPool.BLANK, noWikiSectionNode.getContent()); }
@Test public void testParseNoWikiBlockNonEmpty() { WikiPageNode wikiPageNode = getWikiPageNode("nowikiblock-4.creole"); NoWikiSectionNode noWikiSectionNode = (NoWikiSectionNode) wikiPageNode.getChildASTNode(0); Assert.assertEquals("This is a non \\empty\\ block", noWikiSectionNode.getContent()); }
public void visit(NoWikiSectionNode noWikiSectionNode) { append("<pre>"); append(HtmlUtil.escape(noWikiSectionNode.getContent())); append("</pre>"); }