use of org.thymeleaf.extras.conditionalcomments.dialect.ConditionalCommentsDialect in project thymeleaf-tests by thymeleaf.
the class ConditionalCommentsTest method testConditionalComments.
@Test
public void testConditionalComments() throws Exception {
final TestExecutor executor = new TestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ConditionalCommentsDialect() }));
executor.execute("classpath:engine30/conditionalcomments");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.extras.conditionalcomments.dialect.ConditionalCommentsDialect in project thymeleaf-tests by thymeleaf.
the class SpringBase21Test method testSpringBaseConditionalComments.
@Test
public void testSpringBaseConditionalComments() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation(null);
final TestExecutor executor = new TestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(), new ConditionalCommentsDialect() }));
executor.execute("classpath:engine21/springbase/springbaseconditionalcomments.thindex");
Assert.assertTrue(executor.isAllOK());
}
Aggregations