1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Modified to make sure that the server can handle many anonymous users.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2442 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-12-31 04:34:24 +00:00 committed by gaston
parent 5386c77c7f
commit a6ae5bcc86

View file

@ -55,17 +55,20 @@ public class LoginTest extends SmackTestCase {
*/
public void testAnonymousLogin() {
try {
XMPPConnection connection = new XMPPConnection(getHost(), getPort());
XMPPConnection conn1 = new XMPPConnection(getHost(), getPort());
XMPPConnection conn2 = new XMPPConnection(getHost(), getPort());
try {
// Try to login anonymously
connection.loginAnonymously();
conn1.loginAnonymously();
conn2.loginAnonymously();
}
catch (XMPPException e) {
e.printStackTrace();
fail(e.getMessage());
}
// Close the connection
connection.close();
conn1.close();
conn2.close();
}
catch (Exception e) {
e.printStackTrace();