com.atlassian.crowd.manager.application
Class ApplicationServiceUserAuthenticationTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by com.atlassian.crowd.manager.application.ApplicationServiceTestCase
                          extended by com.atlassian.crowd.manager.application.ApplicationServiceUserAuthenticationTestCase
All Implemented Interfaces:
junit.framework.Test

public class ApplicationServiceUserAuthenticationTestCase
extends ApplicationServiceTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.crowd.manager.application.ApplicationServiceTestCase
ApplicationServiceTestCase.MockI18nHelper
 
Field Summary
 
Fields inherited from class com.atlassian.crowd.manager.application.ApplicationServiceTestCase
application, applicationName, applicationService, directory1, directory2, directoryMapping1, directoryMapping2, duplicateGroup1, duplicateGroup1Members, duplicateGroup2, duplicateGroup2Members, group1, group1Members, group2, group2Members, group3, group3Members, mockApplicationDAO, mockDirectoryManager, mockPermissionManager, mockRemoteDirectory1, mockRemoteDirectory2, principal1, principal1Memberships, principal2, principal2Memberships, principal3, principal3Memberships
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
ApplicationServiceUserAuthenticationTestCase()
           
 
Method Summary
protected  void setUp()
           
protected  void setupAuthenticateBasicStubs()
           
protected  void setupAuthenticateBasicStubsCache()
           
protected  void setupAuthenticateBasicStubsNoAuthenticate()
           
protected  void tearDown()
           
 void testAuthenticate_AccessDeniedThroughGroup_IgnoreCache()
           
 void testAuthenticate_AccessDeniedThroughGroup()
           
 void testAuthenticate_AccessThroughApplication()
           
 void testAuthenticate_AccessThroughCache()
           
 void testAuthenticate_AccessThroughGroup_IgnoreCache()
           
 void testAuthenticate_AccessThroughGroup()
           
 void testAuthenticate_InvalidPassword()
           
 void testAuthenticate_NoAccess()
           
 void testAuthenticate_NoApplicationDirectoriesMapped()
           
 void testAuthenticate_NonExistentApplication()
           
 void testAuthenticate_NonExistentPrincipal()
           
 void testAuthenticate_Null()
           
 
Methods inherited from class org.jmock.MockObjectTestCase
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, newDummy, newDummy, newDummy, not, or, same, startsWith, stringContains, toString
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationServiceUserAuthenticationTestCase

public ApplicationServiceUserAuthenticationTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class ApplicationServiceTestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class ApplicationServiceTestCase
Throws:
java.lang.Exception

setupAuthenticateBasicStubsCache

protected void setupAuthenticateBasicStubsCache()

setupAuthenticateBasicStubsNoAuthenticate

protected void setupAuthenticateBasicStubsNoAuthenticate()

setupAuthenticateBasicStubs

protected void setupAuthenticateBasicStubs()

testAuthenticate_Null

public void testAuthenticate_Null()
                           throws DirectoryAccessException,
                                  java.rmi.RemoteException,
                                  InactiveAccountException,
                                  ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
ApplicationAccessDeniedException

testAuthenticate_NonExistentPrincipal

public void testAuthenticate_NonExistentPrincipal()
                                           throws DirectoryAccessException,
                                                  java.rmi.RemoteException,
                                                  InactiveAccountException,
                                                  ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
ApplicationAccessDeniedException

testAuthenticate_NonExistentApplication

public void testAuthenticate_NonExistentApplication()
                                             throws DirectoryAccessException,
                                                    java.rmi.RemoteException,
                                                    InactiveAccountException,
                                                    ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
ApplicationAccessDeniedException

testAuthenticate_NoAccess

public void testAuthenticate_NoAccess()
                               throws DirectoryAccessException,
                                      java.rmi.RemoteException,
                                      InactiveAccountException,
                                      InvalidAuthenticationException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException

testAuthenticate_AccessThroughCache

public void testAuthenticate_AccessThroughCache()
                                         throws DirectoryAccessException,
                                                java.rmi.RemoteException,
                                                InactiveAccountException,
                                                InvalidAuthenticationException,
                                                ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException
ApplicationAccessDeniedException

testAuthenticate_AccessThroughApplication

public void testAuthenticate_AccessThroughApplication()
                                               throws DirectoryAccessException,
                                                      java.rmi.RemoteException,
                                                      InactiveAccountException,
                                                      InvalidAuthenticationException,
                                                      ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException
ApplicationAccessDeniedException

testAuthenticate_AccessThroughGroup

public void testAuthenticate_AccessThroughGroup()
                                         throws DirectoryAccessException,
                                                java.rmi.RemoteException,
                                                InactiveAccountException,
                                                InvalidAuthenticationException,
                                                ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException
ApplicationAccessDeniedException

testAuthenticate_AccessDeniedThroughGroup

public void testAuthenticate_AccessDeniedThroughGroup()
                                               throws DirectoryAccessException,
                                                      java.rmi.RemoteException,
                                                      InactiveAccountException,
                                                      InvalidAuthenticationException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException

testAuthenticate_InvalidPassword

public void testAuthenticate_InvalidPassword()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testAuthenticate_AccessThroughGroup_IgnoreCache

public void testAuthenticate_AccessThroughGroup_IgnoreCache()
                                                     throws DirectoryAccessException,
                                                            java.rmi.RemoteException,
                                                            InactiveAccountException,
                                                            InvalidAuthenticationException,
                                                            ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException
ApplicationAccessDeniedException

testAuthenticate_AccessDeniedThroughGroup_IgnoreCache

public void testAuthenticate_AccessDeniedThroughGroup_IgnoreCache()
                                                           throws DirectoryAccessException,
                                                                  java.rmi.RemoteException,
                                                                  InactiveAccountException,
                                                                  InvalidAuthenticationException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
InvalidAuthenticationException

testAuthenticate_NoApplicationDirectoriesMapped

public void testAuthenticate_NoApplicationDirectoriesMapped()
                                                     throws DirectoryAccessException,
                                                            java.rmi.RemoteException,
                                                            InactiveAccountException,
                                                            ApplicationAccessDeniedException
Throws:
DirectoryAccessException
java.rmi.RemoteException
InactiveAccountException
ApplicationAccessDeniedException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.