use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceTagBefore.
@Test
public void testDialectPrecedenceTagBefore() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new PrecedenceDialect(StandardDialect.PROCESSOR_PRECEDENCE - 1) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/precedencetagbefore");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testElementMarkupProcessors.
@Test
public void testElementMarkupProcessors() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new MarkupDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/markup");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class PrePostProcessorsTest method testPrePostProcessors.
@Test
public void testPrePostProcessors() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/prepostprocessors");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testReplaceWithProcessable.
@Test
public void testReplaceWithProcessable() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ReplaceWithProcessableDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/replacewithprocessable");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testReplaceWithNonProcessable.
@Test
public void testReplaceWithNonProcessable() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ReplaceWithNonProcessableDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/replacewithnonprocessable");
Assert.assertTrue(executor.isAllOK());
}
Aggregations