Search in sources :

Example 1 with ContextDialect

use of org.thymeleaf.engine21.context.dialect.ContextDialect in project thymeleaf-tests by thymeleaf.

the class ContextTest20 method testContext.

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

Example 2 with ContextDialect

use of org.thymeleaf.engine21.context.dialect.ContextDialect in project thymeleaf-tests by thymeleaf.

the class ContextTest30 method testContext.

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

Example 3 with ContextDialect

use of org.thymeleaf.engine21.context.dialect.ContextDialect in project thymeleaf-tests by thymeleaf.

the class ContextTest21 method testContext.

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

Aggregations

Test (org.junit.Test)3 IDialect (org.thymeleaf.dialect.IDialect)3 StandardDialect (org.thymeleaf.standard.StandardDialect)3 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)3 ContextDialect (org.thymeleaf.engine20.context.dialect.ContextDialect)1 ContextDialect (org.thymeleaf.engine21.context.dialect.ContextDialect)1 ContextDialect (org.thymeleaf.engine30.context.dialect.ContextDialect)1