Search in sources :

Example 1 with TemplateBoundariesDialect

use of org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect in project thymeleaf-tests by thymeleaf.

the class TemplateBoundariesTest method testGTVGXHTML.

@Test
public void testGTVGXHTML() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/gtvg_xhtml");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) TemplateBoundariesDialect(org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect) Test(org.junit.Test)

Example 2 with TemplateBoundariesDialect

use of org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect in project thymeleaf-tests by thymeleaf.

the class TemplateBoundariesTest method testConditionalComments.

@Test
public void testConditionalComments() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/conditionalcomments");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) TemplateBoundariesDialect(org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect) Test(org.junit.Test)

Example 3 with TemplateBoundariesDialect

use of org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect in project thymeleaf-tests by thymeleaf.

the class TemplateBoundariesTest method testAttrProcessor.

@Test
public void testAttrProcessor() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/attrprocessors");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) TemplateBoundariesDialect(org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect) Test(org.junit.Test)

Example 4 with TemplateBoundariesDialect

use of org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect in project thymeleaf-tests by thymeleaf.

the class TemplateBoundariesTest method testGTVGHTML5.

@Test
public void testGTVGHTML5() throws Exception {
    final TestExecutor executor = TestExecutorFactory.createTestExecutor();
    executor.setDialects(Arrays.asList(new IDialect[] { new StandardDialect(), new TemplateBoundariesDialect() }));
    executor.setThrottleStep(this.throttleStep);
    executor.execute("classpath:templateengine/gtvg_html5");
    Assert.assertTrue(executor.isAllOK());
}
Also used : TestExecutor(org.thymeleaf.testing.templateengine.engine.TestExecutor) StandardDialect(org.thymeleaf.standard.StandardDialect) IDialect(org.thymeleaf.dialect.IDialect) TemplateBoundariesDialect(org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)4 IDialect (org.thymeleaf.dialect.IDialect)4 StandardDialect (org.thymeleaf.standard.StandardDialect)4 TemplateBoundariesDialect (org.thymeleaf.templateengine.templateboundaries.dialect.TemplateBoundariesDialect)4 TestExecutor (org.thymeleaf.testing.templateengine.engine.TestExecutor)4