use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringIntegrationTest method testFormCompiledSpEL.
@Test
public void testFormCompiledSpEL() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(new SpringIntegrationWebProcessingContextBuilder());
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(true) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/springintegration/form");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor 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());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class STSMTest method testSTSMWithIntegratedConversion.
@Test
public void testSTSMWithIntegratedConversion() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation("classpath:templateengine/stsm/applicationContext.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/stsm");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testGTVGHTML5.
@Test
public void testGTVGHTML5() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/gtvg_html5");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class Conversion4Test method testConversion.
@Test
public void testConversion() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new ConversionTestDialect4() }));
executor.execute("classpath:templateengine/conversion/conversion4");
Assert.assertTrue(executor.isAllOK());
}
Aggregations