1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-15 20:12:04 +01:00

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 { public class MultiUserChatCreationTest extends SmackTestCase {
private String room = "fruta124@" + getMUCDomain(); private String room;
/** /**
* Constructor for MultiUserChatCreationTest. * Constructor for MultiUserChatCreationTest.
@ -141,4 +141,9 @@ public class MultiUserChatCreationTest extends SmackTestCase {
protected int getMaxConnections() { protected int getMaxConnections() {
return 2; 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 { public class MultiUserChatTest extends SmackTestCase {
private String room = "fruta124@" + getMUCDomain(); private String room;
private MultiUserChat muc; private MultiUserChat muc;
@ -1782,6 +1782,7 @@ public class MultiUserChatTest extends SmackTestCase {
protected void setUp() throws Exception { protected void setUp() throws Exception {
XMPPConnection.DEBUG_ENABLED = false; XMPPConnection.DEBUG_ENABLED = false;
super.setUp(); super.setUp();
room = "fruta124@" + getMUCDomain();
try { try {
// User1 creates the room // User1 creates the room
muc = new MultiUserChat(getConnection(0), room); muc = new MultiUserChat(getConnection(0), room);