aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-11 22:55:51 +0300
committerGravatar Vitaly Takmazov2017-12-11 22:55:51 +0300
commit2be12ebce3d600804227f6b74374c8db37921139 (patch)
tree37d8d0578e8e4eb666a28dcf30e5b4bf8f6dabee /juick-api/src/test
parent18eebc950f6cf91ff9035c83836f0f56ed3d8bf4 (diff)
fix some tests
Diffstat (limited to 'juick-api/src/test')
-rw-r--r--juick-api/src/test/java/com/juick/api/tests/MessagesTests.java3
-rw-r--r--juick-api/src/test/java/com/juick/api/tests/configuration/MockStorageConfiguration.java14
2 files changed, 1 insertions, 16 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 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();
- }
-}