Fixed initialization problem.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2491 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-05-26 03:54:49 +00:00 committed by gaston
parent 5a754d1279
commit 6b887c9c32
2 changed files with 8 additions and 2 deletions

View File

@ -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();
}
}

View File

@ -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);