use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class AttrProcessorsTest method testRemove.
@Test
public void testRemove() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/attrprocessors/remove");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ConditionalCommentsTest method testConditionalComments.
@Test
public void testConditionalComments() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/conditionalcomments");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ContextTest method testContextVarTest.
@Test
public void testContextVarTest() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ContextVarTestDialect() }));
executor.setProcessingContextBuilder(new WebProcessingContextBuilder());
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/context/vartest");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class TestExecutorFactory method createTestExecutor.
public static TestExecutor createTestExecutor() {
final TestExecutor testExecutor = new TestExecutor();
testExecutor.setReporter(MINIMAL_TEST_REPORTER);
return testExecutor;
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class SpringIntegrationTest method testRequestDataUrlsWithoutCompiledSpEL.
@Test
public void testRequestDataUrlsWithoutCompiledSpEL() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation("classpath:templateengine/springintegration/requestdata/applicationContext-without.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/urlswithout");
Assert.assertTrue(executor.isAllOK());
}
Aggregations