org.alfresco.webservice.test
Class AuthenticationServiceSystemTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.webservice.test.AuthenticationServiceSystemTest
All Implemented Interfaces:
junit.framework.Test

public class AuthenticationServiceSystemTest
extends junit.framework.TestCase

Tests the AuthenticationService by trying to login as admin/admin and attempting to login with incorrect credentials.


Constructor Summary
AuthenticationServiceSystemTest()
           
 
Method Summary
 void testEndSession()
          Tests endSession
 void testFailedLogin()
          Tests that a failed authentication attempt fails as expected
 void testSuccessfulLogin()
          Tests whether the authentication service is working correctly
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationServiceSystemTest

public AuthenticationServiceSystemTest()
Method Detail

testSuccessfulLogin

public void testSuccessfulLogin()
                         throws java.lang.Exception
Tests whether the authentication service is working correctly

Throws:
java.lang.Exception

testFailedLogin

public void testFailedLogin()
                     throws java.lang.Exception
Tests that a failed authentication attempt fails as expected

Throws:
java.lang.Exception

testEndSession

public void testEndSession()
                    throws java.lang.Exception
Tests endSession

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.