String html = myPage.getHtml();
return html;
}
private String getContentWith(String passOrFail) throws Exception {
TestExecutionReport report = new TestExecutionReport(null, null);
TestExecutionReport.TestResult result = new TestExecutionReport.TestResult();
result.right = "2";
result.wrong = "0";
result.ignores = "0";
result.exceptions = "0";
result.content = generateHtmlFromWiki(passOrFail);
result.relativePageName = "testPageOne";
report.addResult(result);
Writer writer = new StringWriter();
VelocityEngine engine = context.pageFactory.getVelocityEngine();
report.toXml(writer, engine);
return writer.toString();
}