use of org.thymeleaf.testing.templateengine.engine.TestExecutor 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.testing.templateengine.engine.TestExecutor 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.testing.templateengine.engine.TestExecutor 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());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class EscapingTest method testEscaping.
@Test
public void testEscaping() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation("classpath:templateengine/escaping/applicationContext.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/escaping");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class FeaturesTest method testLazy.
@Test
public void testLazy() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/features/lazy");
Assert.assertTrue(executor.isAllOK());
}
Aggregations