From 2be12ebce3d600804227f6b74374c8db37921139 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 11 Dec 2017 22:55:51 +0300 Subject: fix some tests --- .../src/test/java/com/juick/api/tests/MessagesTests.java | 3 +-- .../api/tests/configuration/MockStorageConfiguration.java | 14 -------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 juick-api/src/test/java/com/juick/api/tests/configuration/MockStorageConfiguration.java (limited to 'juick-api/src/test/java/com') 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 07e649ec..0022c966 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 @@ -25,7 +25,6 @@ import com.juick.Tag; import com.juick.User; import com.juick.api.configuration.ApiAppConfiguration; import com.juick.api.configuration.ApiSecurityConfig; -import com.juick.api.tests.configuration.MockStorageConfiguration; import com.juick.configuration.RepositoryConfiguration; import com.juick.server.helpers.TagStats; import com.juick.service.ImagesService; @@ -65,7 +64,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. * Created by vitalyster on 25.11.2016. */ @RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = {ApiAppConfiguration.class, ApiSecurityConfig.class, RepositoryConfiguration.class, MockStorageConfiguration.class}) +@ContextConfiguration(classes = {ApiAppConfiguration.class, ApiSecurityConfig.class, RepositoryConfiguration.class}) @WebAppConfiguration public class MessagesTests extends AbstractJUnit4SpringContextTests { diff --git a/juick-api/src/test/java/com/juick/api/tests/configuration/MockStorageConfiguration.java b/juick-api/src/test/java/com/juick/api/tests/configuration/MockStorageConfiguration.java deleted file mode 100644 index 374bec0a..00000000 --- a/juick-api/src/test/java/com/juick/api/tests/configuration/MockStorageConfiguration.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.juick.api.tests.configuration; - -import com.juick.service.ImagesService; -import com.juick.service.MockImagesService; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@Configuration -public class MockStorageConfiguration { - @Bean - public ImagesService imagesService() { - return new MockImagesService(); - } -} -- cgit v1.2.3