Search in sources :

Example 1 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class SpringIntegrationTest method testExpression.

@Test
public void testExpression() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new SpringIntegrationWebProcessingContextBuilder());
    executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/springintegration/expression");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 2 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder 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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 3 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder 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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 4 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class SpringIntegrationTest method testBeansCompiledSpEL.

@Test
public void testBeansCompiledSpEL() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new SpringIntegrationWebProcessingContextBuilder("classpath:templateengine/springintegration/applicationContext-beans.xml"));
    executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(true) }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/springintegration/beans");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 5 with SpringIntegrationWebProcessingContextBuilder

use of org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.

the class SpringIntegrationTest method testBeans.

@Test
public void testBeans() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setProcessingContextBuilder(new SpringIntegrationWebProcessingContextBuilder("classpath:templateengine/springintegration/applicationContext-beans.xml"));
    executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/springintegration/beans");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ErrorsSpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder) SpringIntegrationWebProcessingContextBuilder(org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 IDialect (org.thymeleaf.dialect.IDialect)6 ErrorsSpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder)6 SpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder)6 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)6