From 448fc7e84732422011186a9a4633c345e9c6208e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 9 Oct 2017 15:27:48 +0300 Subject: xmpp:ConnectionOut -> StreamServerDialback --- juick-xmpp-wip/src/test/java/com/juick/xmpp/XMPPTests.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (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 d154128c..e513c5e7 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 @@ -17,11 +17,10 @@ package com.juick.xmpp; -import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.WebClient; import com.juick.components.XMPPConnection; -import com.juick.components.configuration.XmppAppConfiguration; 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.ShowQueriesService; @@ -47,7 +46,6 @@ import rocks.xmpp.core.stanza.model.Message; import rocks.xmpp.extensions.component.accept.ExternalComponent; import javax.inject.Inject; -import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; @@ -79,11 +77,7 @@ public class XMPPTests { webClient = MockMvcWebClientBuilder.webAppContextSetup(this.wac).build(); webClient.getOptions().setJavaScriptEnabled(false); } - @Test - public void statusPageIsUp() throws IOException { - Page statusPage = webClient.getPage("http://localhost:8080/status"); - assertThat(statusPage.getWebResponse().getStatusCode(), equalTo(200)); - } + @Inject XMPPRouter router; @Inject -- cgit v1.2.3