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
1 changed files with 6 additions and 3 deletions

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();