aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-06-23 10:47:19 +0300
committerGravatar Vitaly Takmazov2017-06-23 11:00:02 +0300
commit2b6d46ff24f3e1e851fff7ffb4901a2366d17ec9 (patch)
tree03b505b98d09ebf1b2322d035b01474e199526eb /src/test/java/com/juick/tests
parent077153155caf8f810d252cac48da82517424be80 (diff)
fix tests and cleanup
Diffstat (limited to 'src/test/java/com/juick/tests')
-rw-r--r--src/test/java/com/juick/tests/ApiTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java
index 778cc7af..aafbade6 100644
--- a/src/test/java/com/juick/tests/ApiTests.java
+++ b/src/test/java/com/juick/tests/ApiTests.java
@@ -14,6 +14,7 @@ import com.juick.service.SubscriptionService;
import com.juick.service.TagService;
import com.juick.service.UserService;
import com.juick.service.search.SearchService;
+import com.juick.www.WebApp;
import com.juick.www.controllers.PageTemplates;
import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.lang3.StringUtils;
@@ -120,6 +121,10 @@ public class ApiTests {
public Sape sape() {
return Mockito.mock(Sape.class);
}
+ @Bean
+ public WebApp webApp() {
+ return Mockito.mock(WebApp.class);
+ }
}
@Inject