Search in sources :

Example 1 with ContextDialect

use of org.thymeleaf.templateengine.context.dialect.ContextDialect in project thymeleaf-tests by thymeleaf.

the class ContextTest method testContextBase.

@Test
public void testContextBase() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ContextDialect() }));
    executor.setProcessingContextBuilder(new WebProcessingContextBuilder());
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/context/base");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ContextDialect(org.thymeleaf.templateengine.context.dialect.ContextDialect) WebProcessingContextBuilder(org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IDialect (org.thymeleaf.dialect.IDialect)1 StandardDialect (org.thymeleaf.standard.StandardDialect)1 ContextDialect (org.thymeleaf.templateengine.context.dialect.ContextDialect)1 WebProcessingContextBuilder (org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder)1 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)1