Search in sources :

Example 1 with Dialect02

use of org.thymeleaf.engine30.aggregation.dialect.Dialect02 in project thymeleaf-tests by thymeleaf.

the class AggregationTest30 method testContext.

/*
     * This should work in 3.0 because multiple dialects with the same prefix should be possible
     */
@Test
public void testContext() throws Exception {
    final TestExecutor executor = new TestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01(), new Dialect02() }));
    executor.execute("classpath:engine21/aggregation");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) Dialect02(org.thymeleaf.engine30.aggregation.dialect.Dialect02) Dialect01(org.thymeleaf.engine30.aggregation.dialect.Dialect01) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Example 2 with Dialect02

use of org.thymeleaf.engine30.aggregation.dialect.Dialect02 in project thymeleaf-tests by thymeleaf.

the class AggregationTest21 method testContext.

@Test
public void testContext() throws Exception {
    final TestExecutor executor = new TestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new Dialect01(), new Dialect02() }));
    executor.execute("classpath:engine21/aggregation");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) Dialect02(org.thymeleaf.engine21.aggregation.dialect.Dialect02) Dialect01(org.thymeleaf.engine21.aggregation.dialect.Dialect01) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) Test(org.junit.Test)

Aggregations

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