From 2b6d46ff24f3e1e851fff7ffb4901a2366d17ec9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Jun 2017 10:47:19 +0300 Subject: fix tests and cleanup --- juick-api/src/test/java/com/juick/api/tests/MessagesTests.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'juick-api/src/test/java/com/juick/api/tests/MessagesTests.java') 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; -- cgit v1.2.3