Search in sources :

Example 1 with XhtmlAndHtml5NonValidatingDOMTemplateParser

use of org.thymeleaf.templateparser.xmldom.XhtmlAndHtml5NonValidatingDOMTemplateParser 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);
}
Also used : XhtmlAndHtml5NonValidatingDOMTemplateParser(org.thymeleaf.templateparser.xmldom.XhtmlAndHtml5NonValidatingDOMTemplateParser) XhtmlAndHtml5NonValidatingSAXTemplateParser(org.thymeleaf.templateparser.xmlsax.XhtmlAndHtml5NonValidatingSAXTemplateParser) Configuration(org.thymeleaf.Configuration) StandardMessageResolver(org.thymeleaf.messageresolver.StandardMessageResolver) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Configuration (org.thymeleaf.Configuration)1 StandardMessageResolver (org.thymeleaf.messageresolver.StandardMessageResolver)1 XhtmlAndHtml5NonValidatingDOMTemplateParser (org.thymeleaf.templateparser.xmldom.XhtmlAndHtml5NonValidatingDOMTemplateParser)1 XhtmlAndHtml5NonValidatingSAXTemplateParser (org.thymeleaf.templateparser.xmlsax.XhtmlAndHtml5NonValidatingSAXTemplateParser)1