com.atlassian.crowd.manager.application
Class ApplicationServiceGroupTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
com.atlassian.crowd.manager.application.ApplicationServiceTestCase
com.atlassian.crowd.manager.application.ApplicationServiceGroupTestCase
- All Implemented Interfaces:
- junit.framework.Test
public class ApplicationServiceGroupTestCase
- extends ApplicationServiceTestCase
TestCase to cover Group based operations on the ApplicationManager
| 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 |
| 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 |
ApplicationServiceGroupTestCase
public ApplicationServiceGroupTestCase()
testAddGroup
public void testAddGroup()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddGroup_GroupAlreadyExistsInADirectory
public void testAddGroup_GroupAlreadyExistsInADirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddGroup_WithNoApplicationPermissions
public void testAddGroup_WithNoApplicationPermissions()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddGroup_WithNoDirectoryPermissions
public void testAddGroup_WithNoDirectoryPermissions()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddUserToGroup
public void testAddUserToGroup()
throws java.lang.Exception
- Throws:
java.lang.Exception
testaddUserToGroup_WhereTheGroupDoesNotExist
public void testaddUserToGroup_WhereTheGroupDoesNotExist()
throws java.lang.Exception
- Throws:
java.lang.Exception
testaddUserToGroup_WithErrorInUnderlyingDirectory
public void testaddUserToGroup_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testaddUserToGroup_WithNoApplicationPermission
public void testaddUserToGroup_WithNoApplicationPermission()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupByName_GroupExistsInMultipleDirectories
public void testFindGroupByName_GroupExistsInMultipleDirectories()
throws java.rmi.RemoteException,
ObjectNotFoundException,
DirectoryAccessException
- Throws:
java.rmi.RemoteException
ObjectNotFoundException
DirectoryAccessException
testFindGroupByName_GroupExistsInMultipleDirectoriesWithDuplicatePrincipals
public void testFindGroupByName_GroupExistsInMultipleDirectoriesWithDuplicatePrincipals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupByName_NoGoupFoundWithTheGivenName
public void testFindGroupByName_NoGoupFoundWithTheGivenName()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupByName_WithErrorInUnderlyingDirectory
public void testFindGroupByName_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupMemberships
public void testFindGroupMemberships()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupMemberships_WhereNoGroupsExistForPrincipal
public void testFindGroupMemberships_WhereNoGroupsExistForPrincipal()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFindGroupMemberships_WithErrorInUnderlyingDirectory
public void testFindGroupMemberships_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIsGroupMember_SuccessFalse
public void testIsGroupMember_SuccessFalse()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIsGroupMember_SuccessTrue
public void testIsGroupMember_SuccessTrue()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIsGroupMember_WhereUserDoesNotExist
public void testIsGroupMember_WhereUserDoesNotExist()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIsGroupMember_WithErrorInUnderlyingDirectory
public void testIsGroupMember_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveGroup_IteratingOverMultipleDirectories
public void testRemoveGroup_IteratingOverMultipleDirectories()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveGroup_NoGroupsFoundToRemove
public void testRemoveGroup_NoGroupsFoundToRemove()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveGroup_WithErrorInUnderlyingDirectory
public void testRemoveGroup_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveGroup_WithNoApplicationPermissions
public void testRemoveGroup_WithNoApplicationPermissions()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveGroup_WithNoDirectoryPermissions
public void testRemoveGroup_WithNoDirectoryPermissions()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveUserFromGroup_WithErrorInUnderlyingDirectory
public void testRemoveUserFromGroup_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveUserFromGroup_WithNoApplicationPermissions
public void testRemoveUserFromGroup_WithNoApplicationPermissions()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveUserFromGroup_success
public void testRemoveUserFromGroup_success()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroups
public void testSearchGroups()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroups_WithDuplicateGroupsInMultipleDirectories
public void testSearchGroups_WithDuplicateGroupsInMultipleDirectories()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroups_WithCheckForOrdering
public void testSearchGroups_WithCheckForOrdering()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroupMemberships_WithCheckForMembershipAggregation
public void testSearchGroupMemberships_WithCheckForMembershipAggregation()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroups_WithErrorInUnderlyingDirectory
public void testSearchGroups_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSearchGroups_indexOutOfBounds
public void testSearchGroups_indexOutOfBounds()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateGroup_GroupNotFound
public void testUpdateGroup_GroupNotFound()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateGroup_WithErrorInUnderlyingDirectory
public void testUpdateGroup_WithErrorInUnderlyingDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateGroup_WithNoApplicationPermission
public void testUpdateGroup_WithNoApplicationPermission()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateGroup_WithNoDirectoryPermission
public void testUpdateGroup_WithNoDirectoryPermission()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.