use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceTagSame.
@Test
public void testDialectPrecedenceTagSame() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new PrecedenceDialect(StandardDialect.PROCESSOR_PRECEDENCE) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/precedencetagsame");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceModelAfter.
@Test
public void testDialectPrecedenceModelAfter() 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/precedencemodelafter");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceModelBefore.
@Test
public void testDialectPrecedenceModelBefore() 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/precedencemodelbefore");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceTagAfter.
@Test
public void testDialectPrecedenceTagAfter() 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/precedencetagafter");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.standard.StandardDialect in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceModelSame.
@Test
public void testDialectPrecedenceModelSame() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new PrecedenceDialect(StandardDialect.PROCESSOR_PRECEDENCE) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/precedencemodelsame");
Assert.assertTrue(executor.isAllOK());
}
Aggregations