use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixFeaturesTest method testText.
@Test
public void testText() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/dataprefix/features/text");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixFeaturesTest method testExpression.
@Test
public void testExpression() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/dataprefix/features/expression");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixFeaturesTest method testRequest.
@Test
public void testRequest() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/dataprefix/features/request");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixFeaturesTest method testUtil.
@Test
public void testUtil() throws Exception {
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.execute("classpath:templateengine/dataprefix/features/util");
Assert.assertTrue(executor.isAllOK());
}
use of org.thymeleaf.testing.templateengine.engine.TestExecutor in project thymeleaf-tests by thymeleaf.
the class DataPrefixSpringSecurityTest method testSpringSecurity.
@Test
public void testSpringSecurity() throws Exception {
final SpringSecurityWebProcessingContextBuilder processingContextBuilder = new SpringSecurityWebProcessingContextBuilder();
processingContextBuilder.setApplicationContextConfigLocation("classpath:templateengine/dataprefix/springsecurity/applicationContext-security.xml");
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(processingContextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance(), new SpringSecurityDialect() }));
executor.execute("classpath:templateengine/dataprefix/springsecurity");
Assert.assertTrue(executor.isAllOK());
}
Aggregations