org.jivesoftware.smack
Class LoginTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jivesoftware.smack.test.SmackTestCase
              extended by org.jivesoftware.smack.LoginTest
All Implemented Interfaces:
junit.framework.Test

public class LoginTest
extends SmackTestCase

Includes set of login tests.

Author:
Gaston Dombiak

Constructor Summary
LoginTest(java.lang.String arg0)
           
 
Method Summary
 void testInvalidLogin()
          Check that the server is returning the correct error when trying to login using an invalid (i.e.
 void testLoginWithNoResource()
          Check that the server does not allow to log in without specifying a resource.
 void testNonSASLAnonymousLogin()
          Check that the server handles anonymous users correctly.
 void testSASLAnonymousLogin()
          Check that the server handles anonymous users correctly.
 
Methods inherited from class org.jivesoftware.smack.test.SmackTestCase
assertEquals
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginTest

public LoginTest(java.lang.String arg0)
Method Detail

testInvalidLogin

public void testInvalidLogin()
Check that the server is returning the correct error when trying to login using an invalid (i.e. non-existent) user.


testSASLAnonymousLogin

public void testSASLAnonymousLogin()
Check that the server handles anonymous users correctly.


testNonSASLAnonymousLogin

public void testNonSASLAnonymousLogin()
Check that the server handles anonymous users correctly.


testLoginWithNoResource

public void testLoginWithNoResource()
Check that the server does not allow to log in without specifying a resource.