diff options
Diffstat (limited to 'juick-api/src/test/java/com/juick/api')
-rw-r--r-- | juick-api/src/test/java/com/juick/api/tests/MessagesTests.java | 6 |
1 files changed, 4 insertions, 2 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 a9705aee..e8fcc86f 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 @@ -5,7 +5,7 @@ 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.server.configuration.BaseWebConfiguration; import com.juick.api.configuration.ApiSecurityConfig; import com.juick.api.configuration.MessengerConfiguration; import com.juick.api.configuration.TelegramConfiguration; @@ -20,6 +20,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.http.MediaType; @@ -50,7 +51,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @WebAppConfiguration public class MessagesTests { @Configuration - @Import(value = {ApiMvcConfiguration.class, ApiSecurityConfig.class, + @ComponentScan(basePackages = "com.juick.api.controllers") + @Import(value = {BaseWebConfiguration.class, ApiSecurityConfig.class, MockDataConfiguration.class, MessengerConfiguration.class, TelegramConfiguration.class}) static class Config { @Bean |