From 6b887c9c321bf59cba8e531544f55817053d540e Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 26 May 2005 03:54:49 +0000 Subject: [PATCH] Fixed initialization problem. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2491 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/muc/MultiUserChatCreationTest.java | 7 ++++++- test/org/jivesoftware/smackx/muc/MultiUserChatTest.java | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/org/jivesoftware/smackx/muc/MultiUserChatCreationTest.java b/test/org/jivesoftware/smackx/muc/MultiUserChatCreationTest.java index a57426a7b..7aa341fc3 100644 --- a/test/org/jivesoftware/smackx/muc/MultiUserChatCreationTest.java +++ b/test/org/jivesoftware/smackx/muc/MultiUserChatCreationTest.java @@ -64,7 +64,7 @@ import org.jivesoftware.smackx.*; */ public class MultiUserChatCreationTest extends SmackTestCase { - private String room = "fruta124@" + getMUCDomain(); + private String room; /** * Constructor for MultiUserChatCreationTest. @@ -141,4 +141,9 @@ public class MultiUserChatCreationTest extends SmackTestCase { protected int getMaxConnections() { return 2; } + + protected void setUp() throws Exception { + super.setUp(); + room = "fruta124@" + getMUCDomain(); + } } diff --git a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java index 549ea34a7..7a3a96d11 100644 --- a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java +++ b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java @@ -70,7 +70,7 @@ import org.jivesoftware.smackx.packet.DelayInformation; */ public class MultiUserChatTest extends SmackTestCase { - private String room = "fruta124@" + getMUCDomain(); + private String room; private MultiUserChat muc; @@ -1782,6 +1782,7 @@ public class MultiUserChatTest extends SmackTestCase { protected void setUp() throws Exception { XMPPConnection.DEBUG_ENABLED = false; super.setUp(); + room = "fruta124@" + getMUCDomain(); try { // User1 creates the room muc = new MultiUserChat(getConnection(0), room);