aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/test/java/com
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 /juick-api/src/test/java/com
parent077153155caf8f810d252cac48da82517424be80 (diff)
fix tests and cleanup
Diffstat (limited to 'juick-api/src/test/java/com')
-rw-r--r--juick-api/src/test/java/com/juick/api/tests/MessagesTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java b/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
index a892656b..a9705aee 100644
--- a/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
+++ b/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
@@ -3,6 +3,7 @@ package com.juick.api.tests;
import com.juick.Message;
import com.juick.Tag;
import com.juick.User;
+import com.juick.api.ApiServer;
import com.juick.api.TGBot;
import com.juick.api.configuration.ApiMvcConfiguration;
import com.juick.api.configuration.ApiSecurityConfig;
@@ -60,6 +61,10 @@ public class MessagesTests {
TGBot tgBot() {
return Mockito.mock(TGBot.class);
}
+ @Bean
+ ApiServer apiServer() {
+ return Mockito.mock(ApiServer.class);
+ }
}
private MockMvc mockMvc;