From 97e21c0f0aa4b95b810f4a0320676cc92f6ae812 Mon Sep 17 00:00:00 2001 From: kwoyke Date: Mon, 11 Oct 2021 20:51:07 +0200 Subject: [PATCH] BAEL-5189: Make SmackIntegrationTest a LiveTest (#11312) --- ...{SmackIntegrationTest.java => SmackLiveTest.java} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename libraries-server/src/test/java/com/baeldung/smack/{SmackIntegrationTest.java => SmackLiveTest.java} (90%) diff --git a/libraries-server/src/test/java/com/baeldung/smack/SmackIntegrationTest.java b/libraries-server/src/test/java/com/baeldung/smack/SmackLiveTest.java similarity index 90% rename from libraries-server/src/test/java/com/baeldung/smack/SmackIntegrationTest.java rename to libraries-server/src/test/java/com/baeldung/smack/SmackLiveTest.java index 1e5e36ce24..7755b70ebc 100644 --- a/libraries-server/src/test/java/com/baeldung/smack/SmackIntegrationTest.java +++ b/libraries-server/src/test/java/com/baeldung/smack/SmackLiveTest.java @@ -11,17 +11,19 @@ import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; -import org.jxmpp.stringprep.XmppStringprepException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.concurrent.CountDownLatch; -public class SmackIntegrationTest { +/** + * Make sure jabb3r.org is available before running this test. + */ +public class SmackLiveTest { private static AbstractXMPPConnection connection; - private Logger logger = LoggerFactory.getLogger(SmackIntegrationTest.class); + private Logger logger = LoggerFactory.getLogger(SmackLiveTest.class); @BeforeClass public static void setup() throws IOException, InterruptedException, XMPPException, SmackException { @@ -45,7 +47,7 @@ public class SmackIntegrationTest { } @Test - public void whenSendMessageWithChat_thenReceiveMessage() throws XmppStringprepException, InterruptedException { + public void whenSendMessageWithChat_thenReceiveMessage() throws InterruptedException { CountDownLatch latch = new CountDownLatch(1); ChatManager chatManager = ChatManager.getInstanceFor(connection); @@ -64,7 +66,7 @@ public class SmackIntegrationTest { } @Test - public void whenSendMessage_thenReceiveMessageWithFilter() throws XmppStringprepException, InterruptedException { + public void whenSendMessage_thenReceiveMessageWithFilter() throws InterruptedException { CountDownLatch latch = new CountDownLatch(1); final String[] expected = {null};