use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class GTVGTest method testGTVGHTML5.
@Test
public void testGTVGHTML5() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
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 PrePostProcessorsTest method testPrePostProcessors.
@Test
public void testPrePostProcessors() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/prepostprocessors");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testReplaceWithProcessable.
@Test
public void testReplaceWithProcessable() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ReplaceWithProcessableDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/replacewithprocessable");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testReplaceWithNonProcessable.
@Test
public void testReplaceWithNonProcessable() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new ReplaceWithNonProcessableDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/replacewithnonprocessable");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ProcessorsTest method testNoOp.
@Test
public void testNoOp() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new NoOpDialect() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/processors/noop");
Assert.assertTrue(executor.isAllOK());
}
Aggregations