use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion1Test method testConversion.
@Test
public void testConversion() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new ConversionTestDialect1() }));
executor.execute("classpath:templateengine/conversion/conversion1");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion2Test method testConversion.
@Test
public void testConversion() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation("classpath:templateengine/conversion/conversion2/applicationContext.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/conversion/conversion2");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion3Test method testConversion.
@Test
public void testConversion() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(new Conversion3WebProcessingContextBuilder());
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/conversion/conversion3");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion6Test method testConversion.
@Test
public void testConversion() throws Exception {
final SpringWebProcessingContextBuilder processingContextBuilder = new SpringWebProcessingContextBuilder();
processingContextBuilder.setApplicationContextConfigLocation("classpath:templateengine/conversion/conversion6/applicationContext.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(processingContextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/conversion/conversion6");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion7Test method testConversion.
@Test
public void testConversion() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(new Conversion7WebProcessingContextBuilder());
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/conversion/conversion7");
Assert.assertTrue(executor.isAllOK());
}
Aggregations