diff options
author | Vitaly Takmazov | 2017-01-12 14:59:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-01-12 14:59:11 +0300 |
commit | 0c1ef3ab4f352445df3c1ebf87fe9eac2f78df41 (patch) | |
tree | 67248eabf7ca63cdfe5beddad090a33c86b51973 /juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java | |
parent | 14940bf9bf63b1ca8d7d09fde37be52c9ae94ca8 (diff) |
tests refactoring
Diffstat (limited to 'juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java')
-rw-r--r-- | juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java b/juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java new file mode 100644 index 00000000..be72f6ca --- /dev/null +++ b/juick-server/src/test/java/com/juick/configuration/MockDataConfiguration.java @@ -0,0 +1,51 @@ +package com.juick.configuration; + +import com.juick.service.*; +import org.mockito.Mockito; +import org.springframework.context.annotation.Bean; + +/** + * Created by vitalyster on 12.01.2017. + */ +public class MockDataConfiguration { + @Bean + MessagesService messagesService() { + return Mockito.mock(MessagesService.class); + } + @Bean + UserService userService() { + return Mockito.mock(UserService.class); + } + @Bean + TagService tagService() { + return Mockito.mock(TagService.class); + } + @Bean + PushQueriesService pushQueriesService() { + return Mockito.mock(PushQueriesService.class); + } + @Bean + SubscriptionService subscriptionService() { + return Mockito.mock(SubscriptionService.class); + } + @Bean + PMQueriesService pmQueriesService() { + return Mockito.mock(PMQueriesService.class); + } + @Bean + TelegramService telegramService() { + return Mockito.mock(TelegramService.class); + } + @Bean + AdsService adsService() { + return Mockito.mock(AdsService.class); + } + @Bean + CrosspostService crosspostService() { + return Mockito.mock(CrosspostService.class); + } + @Bean + EmailService emailService() { + return Mockito.mock(EmailService.class); + } +} |