Search in sources :

Example 1 with Dialect01

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

Example 2 with Dialect01

use of org.thymeleaf.templateengine.aggregation.dialect.Dialect01 in project thymeleaf-tests by thymeleaf.

the class FeaturesTest method testInliningNoStandard.

@Test
public void testInliningNoStandard() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new Dialect01() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/features/inlining/nostandard");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) InteractionDialect01(org.thymeleaf.templateengine.features.interaction.InteractionDialect01) Dialect01(org.thymeleaf.templateengine.aggregation.dialect.Dialect01) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 IDialect (org.thymeleaf.dialect.IDialect)2 Dialect01 (org.thymeleaf.templateengine.aggregation.dialect.Dialect01)2 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)2 StandardDialect (org.thymeleaf.standard.StandardDialect)1 Dialect02 (org.thymeleaf.templateengine.aggregation.dialect.Dialect02)1 InteractionDialect01 (org.thymeleaf.templateengine.features.interaction.InteractionDialect01)1