From a86b5ada5b07ec18671983b0c772063815cac334 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 17 Oct 2017 22:43:27 +0300 Subject: tests refatoring now api and www tests uses embedded db --- juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'juick-xmpp-wip/src/test/java') diff --git a/juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java b/juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java index e513c5e7..971e849a 100644 --- a/juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java +++ b/juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java @@ -23,6 +23,7 @@ import com.juick.components.XMPPRouter; import com.juick.components.configuration.XmppAppConfiguration; import com.juick.configuration.MockDataConfiguration; import com.juick.server.configuration.BaseWebConfiguration; +import com.juick.service.PrivacyQueriesService; import com.juick.service.ShowQueriesService; import org.junit.Before; import org.junit.Test; @@ -65,6 +66,10 @@ public class XMPPTests { public ShowQueriesService showQueriesService() { return Mockito.mock(ShowQueriesService.class); } + @Bean + public PrivacyQueriesService privacyQueriesService() { + return Mockito.mock(PrivacyQueriesService.class); + } } @Inject -- cgit v1.2.3