From ffc282136234eeb9caf169794fd25e34ee9d5bd2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 10 Apr 2018 12:37:02 +0300 Subject: fix xmpp messages to bare jid --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'juick-server/src') diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java index a9cb306b..2644b49c 100644 --- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java +++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java @@ -565,11 +565,14 @@ public class ServerTests { xmppMessage.setBody("What's up?"); result = router.incomingMessage(xmppMessage); assertThat(result.getBody(), startsWith("Private message sent")); - String xml = "@yo:\n" + + String xml = "@yo:\n" + "343432434\n" + "\n" + "#2 http://juick.com/2juick-2343432434@yo"; result = router.incomingMessage((rocks.xmpp.core.stanza.model.Message)server.parse(xml)); + String active = ""; + result = router.incomingMessage((rocks.xmpp.core.stanza.model.Message)server.parse(active)); xmppMessage.setFrom(botJid); xmppMessage.setTo(botJid.withLocal("pm")); Message pm = new Message(); -- cgit v1.2.3