Search in sources :

Example 26 with TestExecutor

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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) Test(org.junit.Test)

Example 27 with TestExecutor

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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) Dialect01(org.thymeleaf.templateengine.prepostprocessors.dialect.Dialect01) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 28 with TestExecutor

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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ReplaceWithProcessableDialect(org.thymeleaf.templateengine.processors.dialects.replacewithprocessable.ReplaceWithProcessableDialect) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 29 with TestExecutor

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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) ReplaceWithNonProcessableDialect(org.thymeleaf.templateengine.processors.dialects.replacewithnonprocessable.ReplaceWithNonProcessableDialect) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 30 with TestExecutor

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());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) NoOpDialect(org.thymeleaf.templateengine.processors.dialects.noop.NoOpDialect) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)127 Test (org.junit.Test)126 IDialect (org.thymeleaf.dialect.IDialect)61 StandardDialect (org.thymeleaf.standard.StandardDialect)22 SpringWebProcessingContextBuilder (org.thymeleaf.testing.templateengine.context.web.SpringWebProcessingContextBuilder)21 ErrorsSpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.ErrorsSpringIntegrationWebProcessingContextBuilder)8 PrecedenceDialect (org.thymeleaf.templateengine.elementprocessors.dialect.PrecedenceDialect)6 SpringIntegrationWebProcessingContextBuilder (org.thymeleaf.templateengine.springintegration.context.SpringIntegrationWebProcessingContextBuilder)6 TemplateBoundariesDialect (org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect)4 SpringSecurityDialect (org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect)2 Dialect01 (org.thymeleaf.templateengine.aggregation.dialect.Dialect01)2 InteractionDialect01 (org.thymeleaf.templateengine.features.interaction.InteractionDialect01)2 SpringSecurityWebProcessingContextBuilder (org.thymeleaf.testing.templateengine.context.web.SpringSecurityWebProcessingContextBuilder)2 WebProcessingContextBuilder (org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder)2 Dialect02 (org.thymeleaf.templateengine.aggregation.dialect.Dialect02)1 ContextDialect (org.thymeleaf.templateengine.context.dialect.ContextDialect)1 ContextVarTestDialect (org.thymeleaf.templateengine.context.dialect.ContextVarTestDialect)1 Conversion3WebProcessingContextBuilder (org.thymeleaf.templateengine.conversion.conversion3.Conversion3WebProcessingContextBuilder)1 STSMWebProcessingContextBuilder (org.thymeleaf.templateengine.dataprefix.stsm.context.STSMWebProcessingContextBuilder)1 MarkupDialect (org.thymeleaf.templateengine.elementprocessors.dialect.MarkupDialect)1