Search in sources :

Example 1 with Conversion3WebProcessingContextBuilder

use of org.thymeleaf.templateengine.conversion.conversion3.Conversion3WebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class Conversion5Test method testConversion.

@Test
public void testConversion() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new Conversion3WebProcessingContextBuilder());
    executor.setDialects(Arrays.asList(new IDialect[] { new ConversionTestDialect5() }));
    executor.execute("classpath:templateengine/conversion/conversion5");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) Conversion3WebProcessingContextBuilder(org.thymeleaf.templateengine.conversion.conversion3.Conversion3WebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IDialect (org.thymeleaf.dialect.IDialect)1 Conversion3WebProcessingContextBuilder (org.thymeleaf.templateengine.conversion.conversion3.Conversion3WebProcessingContextBuilder)1 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)1