From 3db31f9169aa9f0526688f32bcb1c1f60e50f9cb Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 1 Dec 2005 02:23:42 +0000 Subject: [PATCH] Fixed test case (now uses threadID when creating Chats). git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3130 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smack/PresencePriorityTest.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/test/org/jivesoftware/smack/PresencePriorityTest.java b/test/org/jivesoftware/smack/PresencePriorityTest.java index 01772aedf..5cc347dae 100644 --- a/test/org/jivesoftware/smack/PresencePriorityTest.java +++ b/test/org/jivesoftware/smack/PresencePriorityTest.java @@ -44,8 +44,8 @@ public class PresencePriorityTest extends SmackTestCase { Thread.sleep(150); // Create the chats between the participants Chat chat0 = new Chat(getConnection(0), getBareJID(1)); - Chat chat1 = new Chat(getConnection(1), getBareJID(0)); - Chat chat2 = new Chat(conn, getBareJID(0)); + Chat chat1 = new Chat(getConnection(1), getBareJID(0), chat0.getThreadID()); + Chat chat2 = new Chat(conn, getBareJID(0), chat0.getThreadID()); // Test delivery of message to the presence with highest priority chat0.sendMessage("Hello"); @@ -86,7 +86,7 @@ public class PresencePriorityTest extends SmackTestCase { conn.login(getUsername(1), getUsername(1), "OtherPlace"); conn.sendPacket(new Presence(Presence.Type.AVAILABLE, null, 1, Presence.Mode.AVAILABLE)); - chat2 = new Chat(conn, getBareJID(0)); + chat2 = new Chat(conn, getBareJID(0), chat0.getThreadID()); Thread.sleep(150); // Test delivery of message to the presence with highest priority @@ -125,9 +125,4 @@ public class PresencePriorityTest extends SmackTestCase { protected int getMaxConnections() { return 2; } - - protected void setUp() throws Exception { - XMPPConnection.DEBUG_ENABLED = false; - super.setUp(); - } }