use of org.thymeleaf.templateengine.elementprocessors.dialect.PrecedenceDialect 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.templateengine.elementprocessors.dialect.PrecedenceDialect 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.templateengine.elementprocessors.dialect.PrecedenceDialect 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.templateengine.elementprocessors.dialect.PrecedenceDialect 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.templateengine.elementprocessors.dialect.PrecedenceDialect 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());
}
Aggregations