use of org.thymeleaf.templateparser.xmlsax.XhtmlAndHtml5NonValidatingSAXTemplateParser in project thymeleaf-tests by thymeleaf.
the class TemplateParserTest method initialize.
// -----
@Before
public void initialize() {
this.templateResolver = new StringTemplateResolver("!!!");
this.configuration = new Configuration();
this.configuration.setDialect(new TestDialect());
this.configuration.setTemplateResolver(this.templateResolver);
this.configuration.setMessageResolver(new StandardMessageResolver());
this.configuration.setTemplateModeHandlers(StandardTemplateModeHandlers.ALL_TEMPLATE_MODE_HANDLERS);
this.configuration.initialize();
this.xmlDomDocumentParser = new XhtmlAndHtml5NonValidatingDOMTemplateParser(2);
this.xmlSaxDocumentParser = new XhtmlAndHtml5NonValidatingSAXTemplateParser(2);
}
Aggregations