com.atlassian.user.generic
Class AbstractTestGroupManager
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
com.atlassian.user.generic.AbstractSpringTest
com.atlassian.user.generic.AbstractTestGroupManager
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AbstractTestExternalGroupManager, TestMemoryGroupManager, TestOSUserGroupManager
public abstract class AbstractTestGroupManager
- extends AbstractSpringTest
Extend this class and implement the getUserManager() and getGroupManager() methods
to run these test over other implementions.
| Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
jdbcTemplate |
| Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
transactionDefinition, transactionManager, transactionStatus |
| Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
| Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
applicationContext |
| Fields inherited from class org.springframework.test.ConditionalTestCase |
logger |
| Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource |
| Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
endTransaction, onSetUp, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
| Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
| Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
contextKey, createApplicationContext, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, setDirty, setUp, tearDown |
| Methods inherited from class org.springframework.test.AbstractSpringContextTests |
addContext, contextKeyString, getContext, hasCachedContext, setDirty |
| Methods inherited from class org.springframework.test.ConditionalTestCase |
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled |
| 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 |
AbstractTestGroupManager
public AbstractTestGroupManager()
getGroupManager
protected abstract com.atlassian.user.GroupManager getGroupManager()
- Override to return a specific implementation for testing
getUserManager
protected abstract com.atlassian.user.UserManager getUserManager()
- Override to return a specific implementation for testing
testGetGroup
public final void testGetGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetGroups
public final void testGetGroups()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetGroupsWithNullUser
public final void testGetGroupsWithNullUser()
throws Exception
- Throws:
Exception
testGetWritableGroups
public final void testGetWritableGroups()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testAddMembership
public final void testAddMembership()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testMembershipWithInvalidGroup
public final void testMembershipWithInvalidGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testMembershipWithNullGroup
public final void testMembershipWithNullGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testRemoveGroupWithMembership
public final void testRemoveGroupWithMembership()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testRemoveMembership
public final void testRemoveMembership()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testCreateGroup
public void testCreateGroup()
throws com.atlassian.user.EntityException,
net.sf.hibernate.HibernateException
- Throws:
com.atlassian.user.EntityException
net.sf.hibernate.HibernateException
testAddMembershipLocal
public void testAddMembershipLocal()
throws Exception
- Throws:
Exception
testRemoveLocalMembership
public void testRemoveLocalMembership()
throws com.atlassian.user.EntityException,
net.sf.hibernate.HibernateException
- Throws:
com.atlassian.user.EntityException
net.sf.hibernate.HibernateException
testRemoveGroup
public void testRemoveGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetLocalMemberNames
public void testGetLocalMemberNames()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetLocalMembers
public void testGetLocalMembers()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetLocalMembersOrderedByUserName
public void testGetLocalMembersOrderedByUserName()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetMemberNames
public void testGetMemberNames()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testGetGroupsForUser
public void testGetGroupsForUser()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testRemoveUserRemovesMemberships
public final void testRemoveUserRemovesMemberships()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testEqualityOnGroup
public void testEqualityOnGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
testHashingOnGroup
public void testHashingOnGroup()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.