use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testNoOp.
@Test
public void testNoOp() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new NoOpDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/noop");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testGTVGXHTML.
@Test
public void testGTVGXHTML() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/gtvg_xhtml");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testConditionalComments.
@Test
public void testConditionalComments() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/conditionalcomments");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testAttrProcessor.
@Test
public void testAttrProcessor() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/attrprocessors");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class AggregationTest method testContext.
@Test
public void testContext() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01(), new Dialect02() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/aggregation");
Assert.assertTrue(executor.isAllOK());
}
Aggregations