mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +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:
parent
d42b40496d
commit
995f319f1e
1 changed files with 2 additions and 1 deletions
|
@ -118,6 +118,7 @@ public abstract class SmackTestCase extends TestCase {
|
||||||
// Create the configuration for this new connection
|
// Create the configuration for this new connection
|
||||||
ConnectionConfiguration config = new ConnectionConfiguration(host, port);
|
ConnectionConfiguration config = new ConnectionConfiguration(host, port);
|
||||||
config.setCompressionEnabled(Boolean.getBoolean("test.compressionEnabled"));
|
config.setCompressionEnabled(Boolean.getBoolean("test.compressionEnabled"));
|
||||||
|
config.setSendPresence(sendInitialPresence());
|
||||||
if (getSocketFactory() == null) {
|
if (getSocketFactory() == null) {
|
||||||
config.setSocketFactory(getSocketFactory());
|
config.setSocketFactory(getSocketFactory());
|
||||||
}
|
}
|
||||||
|
@ -223,7 +224,7 @@ public abstract class SmackTestCase extends TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Login with the new test account
|
// 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
|
// Let the server process the available presences
|
||||||
Thread.sleep(150);
|
Thread.sleep(150);
|
||||||
|
|
Loading…
Reference in a new issue