aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-04-07 10:29:52 +0300
committerGravatar Vitaly Takmazov2017-04-07 10:29:52 +0300
commit9820abe11c0c037f50bb2f7ddbb0bd19646264dc (patch)
tree5a33901fc294546c40b0cdbc65640b041e4c694e /juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java
parent6951e2ad47ed4db3dc7d0b08aeadeb09bc3b994d (diff)
juick-www: merge juick-spring-www i18n, drop thymeleaf
Diffstat (limited to 'juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java')
-rw-r--r--juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java b/juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java
deleted file mode 100644
index 4fd1f1f5..00000000
--- a/juick-spring-www/src/test/java/com/juick/www/ThymeleafTestsJunitRunner.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.juick.www;
-
-import nz.net.ultraq.thymeleaf.LayoutDialect;
-import org.junit.Assert;
-import org.junit.Test;
-import org.thymeleaf.dialect.IDialect;
-import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;
-import org.thymeleaf.spring4.dialect.SpringStandardDialect;
-import org.thymeleaf.testing.templateengine.context.web.SpringWebProcessingContextBuilder;
-import org.thymeleaf.testing.templateengine.engine.TestExecutor;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by aalexeev on 11/24/16.
- */
-public class ThymeleafTestsJunitRunner {
-
- @Test
- public void runThymeleafTest() {
- final List<IDialect> dialects = new ArrayList<>();
- dialects.add(new SpringStandardDialect());
- dialects.add(new LayoutDialect());
- dialects.add(new SpringSecurityDialect());
-
- final SpringWebProcessingContextBuilder springPCBuilder = new SpringWebProcessingContextBuilder();
-
- springPCBuilder.setApplicationContextConfigLocation(null);
-
- final TestExecutor executor = new TestExecutor();
- executor.setProcessingContextBuilder(springPCBuilder);
- executor.setDialects(dialects);
-
- executor.execute("classpath:tests");
-
- Assert.assertTrue(executor.isAllOK());
- executor.reset();
- }
-}