use of com.github.bordertech.wcomponents.WTemplate in project wcomponents by BorderTech.
the class WTemplateRenderer_Test method testPlainTextInlineTemplate.
@Test
public void testPlainTextInlineTemplate() throws IOException, SAXException, XpathException {
String inline = "Hello from plain text.";
WTemplate template = new WTemplate();
setupTemplate(template);
template.setEngineName(TemplateRendererFactory.TemplateEngine.PLAINTEXT);
template.setInlineTemplate(inline);
String output = toXHtml(template);
Assert.assertTrue("Text not in output", output.contains(inline));
}
Aggregations