Search in sources :

Example 1 with STSMWebProcessingContextBuilder

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

the class DataPrefixSTSMTest method testSTSM.

@Test
public void testSTSM() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new STSMWebProcessingContextBuilder());
    executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
    executor.execute("classpath:templateengine/dataprefix/stsm");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) STSMWebProcessingContextBuilder(org.thymeleaf.templateengine.dataprefix.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.dataprefix.stsm.context.STSMWebProcessingContextBuilder)1 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)1