use of org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.
the class ContextTest method testContextVarTest.
@Test
public void testContextVarTest() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ContextVarTestDialect() }));
executor.setProcessingContextBuilder(new WebProcessingContextBuilder());
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/context/vartest");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder 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());
}
Aggregations