use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringIntegrationTest method testRequestDataFormWithCompiledSpEL.
@Test
public void testRequestDataFormWithCompiledSpEL() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation("classpath:templateengine/springintegration/requestdata/applicationContext-with.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(true) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/springintegration/requestdata/formwith");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringIntegrationTest method testExpressionCompiledSpEL.
@Test
public void testExpressionCompiledSpEL() 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/expression");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringIntegrationTest method testXmlNs.
@Test
public void testXmlNs() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation(null);
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/springintegration/xmlns");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringSecurityTest method testSpringSecurity.
@Test
public void testSpringSecurity() throws Exception {
final SpringSecurityWebProcessingContextBuilder processingContextBuilder = new SpringSecurityWebProcessingContextBuilder();
processingContextBuilder.setApplicationContextConfigLocation("classpath:templateengine/springsecurity/applicationContext-security.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(processingContextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(), new SpringSecurityDialect() }));
executor.execute("classpath:templateengine/springsecurity");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testGTVGXHTML.
@Test
public void testGTVGXHTML() 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_xhtml");
Assert.assertTrue(executor.isAllOK());
}
Aggregations