1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Minor fixes (and some new test cases).

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2486 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-04-15 21:46:53 +00:00 committed by gaston
parent 9caf660bc0
commit 4fee4feb5a
5 changed files with 152 additions and 18 deletions

View file

@ -59,7 +59,7 @@ public class MessageTest extends SmackTestCase {
getConnection(1).sendPacket(new Presence(Presence.Type.AVAILABLE));
// Check that offline messages are retrieved by user2 which is now available
Message message = (Message) collector.nextResult(2000);
Message message = (Message) collector.nextResult(2500);
assertNotNull(message);
message = (Message) collector.nextResult(2000);
assertNotNull(message);
@ -108,7 +108,7 @@ public class MessageTest extends SmackTestCase {
XMPPConnection conn = null;
try {
conn = new SSLXMPPConnection(getHost());
conn.login(getUsername(0), getUsername(0));
conn.login(getUsername(0), getUsername(0), "Other resource");
// Send the first message
conn.sendPacket(msg);
@ -133,7 +133,7 @@ public class MessageTest extends SmackTestCase {
}
protected void setUp() throws Exception {
XMPPConnection.DEBUG_ENABLED = true;
XMPPConnection.DEBUG_ENABLED = false;
super.setUp();
}
}