use of org.apache.wiki.render.WikiRenderer in project jspwiki by apache.
the class CounterPluginTest method translate.
private String translate(String src) throws IOException, NoRequiredPropertyException, ServletException {
WikiContext context = new WikiContext(testEngine, new WikiPage(testEngine, "TestPage"));
MarkupParser p = new JSPWikiMarkupParser(context, new StringReader(src));
WikiDocument dom = p.parse();
WikiRenderer r = new XHTMLRenderer(context, dom);
return r.getString();
}
Aggregations