1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

Simplified list of #login methods in XMPPConnection.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10849 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2008-10-24 05:31:56 +00:00 committed by gato
parent d42b40496d
commit 995f319f1e

View file

@ -118,6 +118,7 @@ public abstract class SmackTestCase extends TestCase {
// Create the configuration for this new connection
ConnectionConfiguration config = new ConnectionConfiguration(host, port);
config.setCompressionEnabled(Boolean.getBoolean("test.compressionEnabled"));
config.setSendPresence(sendInitialPresence());
if (getSocketFactory() == null) {
config.setSocketFactory(getSocketFactory());
}
@ -223,7 +224,7 @@ public abstract class SmackTestCase extends TestCase {
}
}
// Login with the new test account
getConnection(i).login(usernamnePrefix + i, usernamnePrefix + i, "Smack", sendInitialPresence());
getConnection(i).login(usernamnePrefix + i, usernamnePrefix + i, "Smack");
}
// Let the server process the available presences
Thread.sleep(150);