com.atlassian.crowd.manager.application
Class ApplicationServicePrincipalTestCase

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.ApplicationServicePrincipalTestCase
All Implemented Interfaces:
junit.framework.Test

public class ApplicationServicePrincipalTestCase
extends ApplicationServiceTestCase

TestCase to cover Principal based operations on the ApplicationManager


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
ApplicationServicePrincipalTestCase()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAddUser_UserAlreadyExists()
           
 void testAddUser_WithErrorInUnderlyingDirectory()
           
 void testAddUser_WithNoApplicationPermissions()
           
 void testAddUser()
           
 void testfindUserByName_WithErrorInUnderlyingDirectory()
           
 void testfindUserByName()
           
 void testRemoveUser_WherePrincipalDoesNotExist()
           
 void testRemoveUser_WithErrorInUnderlyingDirectory()
           
 void testRemoveUser_WithNoApplicationPermissions()
           
 void testRemoveUser()
           
 void testRemoveUserAttribute_WherePrincipalDoesNotExist()
           
 void testRemoveUserAttribute_WithErrorInUnderlyingDirectory()
           
 void testRemoveUserAttribute_WithNoApplicationPermissions()
           
 void testRemoveUserAttribute()
           
 void testResetUserCredential_WherePrincipalDoesNotExist()
           
 void testResetUserCredential_WithErrorInUnderlyingDirectory()
           
 void testResetUserCredential_WithNoApplicationPermissions()
           
 void testResetUserCredential()
           
 void testSearchUsers_indexOutOfBounds()
           
 void testSearchUsers_WithErrorInUnderlyingDirectory()
           
 void testSearchUsers()
           
 void testStoreUserAttributes_WherePrincipalDoesNotExist()
           
 void teststoreUserAttributes_WithErrorInUnderlyingDirectory()
           
 void teststoreUserAttributes_WithNoApplicationPermissions()
           
 void testStoreUserAttributes()
           
 void testUpdateUserAttribute_WherePrincipalDoesNotExist()
           
 void testUpdateUserAttribute_WithErrorInUnderlyingDirectory()
           
 void testUpdateUserAttribute_WithNoApplicationPermissions()
           
 void testUpdateUserAttribute()
           
 void testupdateUserCredential_WherePrincipalDoesNotExist()
           
 void testupdateUserCredential_WithErrorInUnderlyingDirectory()
           
 void testupdateUserCredential_WithNoApplicationPermissions()
           
 void testupdateUserCredential()
           
 
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

ApplicationServicePrincipalTestCase

public ApplicationServicePrincipalTestCase()
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

teststoreUserAttributes_WithErrorInUnderlyingDirectory

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

teststoreUserAttributes_WithNoApplicationPermissions

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

testStoreUserAttributes_WherePrincipalDoesNotExist

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

testStoreUserAttributes

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

testAddUser_WithErrorInUnderlyingDirectory

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

testAddUser_WithNoApplicationPermissions

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

testAddUser

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

testAddUser_UserAlreadyExists

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

testfindUserByName_WithErrorInUnderlyingDirectory

public void testfindUserByName_WithErrorInUnderlyingDirectory()
                                                       throws java.rmi.RemoteException,
                                                              DirectoryAccessException
Throws:
java.rmi.RemoteException
DirectoryAccessException

testfindUserByName

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

testRemoveUserAttribute_WithErrorInUnderlyingDirectory

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

testRemoveUserAttribute_WithNoApplicationPermissions

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

testRemoveUserAttribute_WherePrincipalDoesNotExist

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

testRemoveUserAttribute

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

testRemoveUser_WithErrorInUnderlyingDirectory

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

testRemoveUser_WithNoApplicationPermissions

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

testRemoveUser_WherePrincipalDoesNotExist

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

testRemoveUser

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

testResetUserCredential_WithErrorInUnderlyingDirectory

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

testResetUserCredential_WithNoApplicationPermissions

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

testResetUserCredential_WherePrincipalDoesNotExist

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

testResetUserCredential

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

testSearchUsers_WithErrorInUnderlyingDirectory

public void testSearchUsers_WithErrorInUnderlyingDirectory()

testSearchUsers_indexOutOfBounds

public void testSearchUsers_indexOutOfBounds()
                                      throws DirectoryAccessException
Throws:
DirectoryAccessException

testSearchUsers

public void testSearchUsers()
                     throws DirectoryAccessException
Throws:
DirectoryAccessException

testUpdateUserAttribute_WithErrorInUnderlyingDirectory

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

testUpdateUserAttribute_WithNoApplicationPermissions

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

testUpdateUserAttribute_WherePrincipalDoesNotExist

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

testUpdateUserAttribute

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

testupdateUserCredential_WithErrorInUnderlyingDirectory

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

testupdateUserCredential_WithNoApplicationPermissions

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

testupdateUserCredential_WherePrincipalDoesNotExist

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

testupdateUserCredential

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.