Search in sources :

Example 6 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class SpringIntegrationTest method testForm.

@Test
public void testForm() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new SpringIntegrationWebProcessingContextBuilder());
    executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/springintegration/form");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 IDialect (org.thymeleaf.dialect.IDialect)6 ErrorsSpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder)6 SpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder)6 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)6