cafe.test
Class TestAuthentication

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cafe.test.TestAuthentication
All Implemented Interfaces:
junit.framework.Test

public class TestAuthentication
extends junit.framework.TestCase

Performs tests on Authentication class' methods.

Version:
10-04-07
Author:
Antti-Pekka Sarin

Constructor Summary
TestAuthentication()
           
 
Method Summary
 void testAuthenticateUser()
          This method performs tests on authenticateUser with correct AuthenticationSettings.
 void testAuthenticateUserWithWrongURL()
          This method performs test for a case where a new Authentication-object receives a settings object with a wrong URL.
 void testConstructorForNullKeyStorePassword()
           
 void testConstructorForNullKeyStorePath()
           
 void testConstructorForNullSettings()
          This method performs test for a case where a new Authentication-object receives null value as a settings-object.
 void testConstructorForNullUrl()
           
 void testConstructorForWrongKeyStorePassword()
           
 void testConstructorForWrongKeyStorePath()
          This method performs test for a case where a new Authentication-object receives a settings object with a wrong keystore path.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestAuthentication

public TestAuthentication()
Method Detail

testAuthenticateUser

public void testAuthenticateUser()
This method performs tests on authenticateUser with correct AuthenticationSettings. REMEBER TO TYPE IN YOUR USER ID AND PASSWORD for the assertTrue statement.


testAuthenticateUserWithWrongURL

public void testAuthenticateUserWithWrongURL()
This method performs test for a case where a new Authentication-object receives a settings object with a wrong URL. This should raise an IOException when calling authenticateUser-method.


testConstructorForWrongKeyStorePath

public void testConstructorForWrongKeyStorePath()
This method performs test for a case where a new Authentication-object receives a settings object with a wrong keystore path. This should raise a RuntimeException.


testConstructorForWrongKeyStorePassword

public void testConstructorForWrongKeyStorePassword()

testConstructorForNullUrl

public void testConstructorForNullUrl()

testConstructorForNullKeyStorePath

public void testConstructorForNullKeyStorePath()

testConstructorForNullKeyStorePassword

public void testConstructorForNullKeyStorePassword()

testConstructorForNullSettings

public void testConstructorForNullSettings()
This method performs test for a case where a new Authentication-object receives null value as a settings-object. This should raise a RuntimeException