Search in sources :

Example 1 with STSMWebProcessingContextBuilder

use of org.thymeleaf.templateengine.stsm.context.STSMWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class STSMTest method testSTSMWithoutIntegratedConversion.

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

Aggregations

Test (org.junit.Test)1 IDialect (org.thymeleaf.dialect.IDialect)1 STSMWebProcessingContextBuilder (org.thymeleaf.templateengine.stsm.context.STSMWebProcessingContextBuilder)1 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)1