Search in sources :

Example 6 with PrecedenceDialect

use of org.thymeleaf.templateengine.elementprocessors.dialect.PrecedenceDialect 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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) PrecedenceDialect(org.thymeleaf.templateengine.elementprocessors.dialect.PrecedenceDialect) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 IDialect (org.thymeleaf.dialect.IDialect)6 StandardDialect (org.thymeleaf.standard.StandardDialect)6 PrecedenceDialect (org.thymeleaf.templateengine.elementprocessors.dialect.PrecedenceDialect)6 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)6