use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixSTSMTest method testSTSM.
@Test
public void testSTSM() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(new STSMWebProcessingContextBuilder());
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.execute("classpath:templateengine/dataprefix/stsm");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DOMSelectorTest method testDOMSelector.
@Test
public void testDOMSelector() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/domselector");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testBlock.
@Test
public void testBlock() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/block");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceTagSame.
@Test
public void testDialectPrecedenceTagSame() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new PrecedenceDialect(StandardDialect.PROCESSOR_PRECEDENCE) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/precedencetagsame");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class ElementProcessorsTest method testDialectPrecedenceModelAfter.
@Test
public void testDialectPrecedenceModelAfter() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new PrecedenceDialect(StandardDialect.PROCESSOR_PRECEDENCE + 1) }));
executor.setThrottleStep(this.throttleStep);
executor.execute("classpath:templateengine/elementprocessors/precedencemodelafter");
Assert.assertTrue(executor.isAllOK());
}
Aggregations