aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-wip/src/test/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-17 22:37:07 +0300
committerGravatar Vitaly Takmazov2018-02-17 22:37:07 +0300
commitf2ae5252e70355a5481e99a41ab79969e1c65502 (patch)
tree7606d9dda411d50a9b396e81c13d7056a16f10aa /juick-xmpp-wip/src/test/java
parentdd8a51e0f342c183116d8b2af3f12394b0ac53dd (diff)
fix xmpp-wip configuration
Diffstat (limited to 'juick-xmpp-wip/src/test/java')
-rw-r--r--juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java10
1 files changed, 8 insertions, 2 deletions
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 1f7107bf..3e8961bb 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
@@ -19,10 +19,12 @@ package com.juick.xmpp;
import com.gargoylesoftware.htmlunit.WebClient;
import com.juick.components.XMPPRouter;
+import com.juick.components.configuration.BotAppConfiguration;
import com.juick.configuration.MockDataConfiguration;
import com.juick.server.XMPPConnection;
+import com.juick.server.configuration.ApiAppConfiguration;
import com.juick.server.configuration.BaseWebConfiguration;
-import com.juick.server.configuration.XmppAppConfiguration;
+import com.juick.service.MessengerService;
import com.juick.service.PrivacyQueriesService;
import com.juick.service.ShowQueriesService;
import org.junit.Before;
@@ -59,7 +61,7 @@ import static org.hamcrest.Matchers.equalTo;
public class XMPPTests {
@Configuration
@Import(value = {
- BaseWebConfiguration.class, XmppAppConfiguration.class, MockDataConfiguration.class
+ BotAppConfiguration.class, ApiAppConfiguration.class, MockDataConfiguration.class
})
static class Config {
@Bean
@@ -70,6 +72,10 @@ public class XMPPTests {
public PrivacyQueriesService privacyQueriesService() {
return Mockito.mock(PrivacyQueriesService.class);
}
+ @Bean
+ public MessengerService messengerService() {
+ return Mockito.mock(MessengerService.class);
+ }
}
@Inject