use of org.thymeleaf.testing.templateengine.context.web.SpringWebProcessingContextBuilder in project thymeleaf-tests by thymeleaf.
the class SpringBenchmarkTest method testSpringBenchmark.
@Test
public void testSpringBenchmark() throws Exception {
final SpringWebProcessingContextBuilder contextBuilder = new SpringWebProcessingContextBuilder();
contextBuilder.setApplicationContextConfigLocation(null);
contextBuilder.setShareAppContextForAllTests(true);
final TestExecutor executor = TestExecutorFactory.createTestExecutor();
executor.setProcessingContextBuilder(contextBuilder);
executor.setDialects(Arrays.asList(new IDialect[] { SpringSpecificVersionUtils.createSpringStandardDialectInstance() }));
executor.setReporter(new BenchmarkTestReporter());
executor.execute("classpath:benchmark/benchmark.thindex");
Assert.assertTrue(executor.isAllOK());
}
Aggregations