use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testConditionalComments.
@Test
public void testConditionalComments() 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/conditionalcomments");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class TemplateBoundariesTest method testAttrProcessor.
@Test
public void testAttrProcessor() 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/attrprocessors");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class XmlnsTest method testXmlns.
@Test
public void testXmlns() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/xmlns");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class BenchmarkTest method testBenchmark.
@Test
public void testBenchmark() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setReporter(new BenchmarkTestReporter());
executor.execute("classpath:benchmark/benchmark.thindex");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class AggregationTest method testContext.
@Test
public void testContext() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01(), new Dialect02() }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/aggregation");
Assert.assertTrue(executor.isAllOK());
}
Aggregations