com.atlassian.crowd.acceptance.tests.directory
Class LocalGroupsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.springframework.test.AbstractTransactionalSpringContextTests
                              extended by org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
                                  extended by com.atlassian.crowd.acceptance.tests.directory.BaseTest
                                      extended by com.atlassian.crowd.acceptance.tests.directory.LocalGroupsTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ApacheDS102Test.ApacheDS102LocalGroupsTest, ApacheDS154Test.ApacheDS154LocalGroupsTest

public abstract class LocalGroupsTest
extends BaseTest

Tests the local groups functionality of the DbCachingRemoteDirectory.


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest
directory, directoryManager, sessionFactory
 
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
 
Constructor Summary
LocalGroupsTest()
           
 
Method Summary
protected  void configureDirectory(Properties directorySettings)
          Configures a runtime Crowd object that connects to the Sun instance.
protected  void loadTestData()
          Called before every test run to add data needed for test.
protected  void removeTestData()
          Called before loadTestData() AND after every test run to remove data added for test.
 void testAddLocalGroupToLocalGroup()
           
 void testAddUserToLdapGroupFails()
           
 void testAddUserToLocalGroup()
           
 void testCanAddLdapGroupToLocalGroupWhenLocalGroupsAreEnabled()
           
 void testCannotAddLocalGroupToLdapGroup()
           
 void testCannotAddLocalGroupWithSameNameAsLdap()
           
 void testFindLdapGroupByName()
           
 void testFindLocalGroupByName()
           
 void testRemoveLocalGroupFromLocalGroup()
           
 void testRemoveUserFromLdapGroupFails()
           
 void testRemoveUserFromLocalGroup()
           
 void testSearchAllGroupNamesWithRestrictions()
           
 void testSearchAllGroups()
           
 void testSearchGroupNamesOnLdapOnlyAttribute()
           
 void testSearchGroupRelationshipsForCombinedGroupMembershipsOfUser()
           
 void testSearchGroupRelationshipsForCombinedGroupNameMembershipsOfUser()
           
 void testSearchGroupRelationshipsForGroupMembershipsOfLdapGroup()
           
 void testSearchGroupRelationshipsForGroupMembershipsOfLocalGroup()
           
 void testSearchGroupRelationshipsForGroupMembersOfLdapGroup()
           
 void testSearchGroupRelationshipsForGroupMembersOfLocalGroup()
           
 void testSearchGroupRelationshipsForGroupNameMembershipsOfLdapGroup()
           
 void testSearchGroupRelationshipsForGroupNameMembershipsOfLocalGroup()
           
 void testSearchGroupRelationshipsForGroupNameMembersOfLdapGroup()
           
 void testSearchGroupRelationshipsForGroupNameMembersOfLocalGroup()
           
 void testSearchGroupRelationshipsForUserMembersOfLdapGroup()
           
 void testSearchGroupRelationshipsForUserMembersOfLocalGroup()
           
 void testSearchGroupRelationshipsForUserNameMembersOfLdapGroup()
           
 void testSearchGroupRelationshipsForUserNameMembersOfLocalGroup()
           
 void testSearchGroupsOnLdapOnlyAttributes()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest
customizeBeanFactory, deleteFromTables, getConfigLocations, getDirectoryConfigFile, getRemoteDirectory, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, setDirectoryConfigFile, setLdapPropertiesHelper, setSessionFactory, setupSpring
 
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
countRowsInTable, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
 
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
endTransaction, isDefaultRollback, isRollback, onSetUp, 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, createBeanDefinitionReader, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalGroupsTest

public LocalGroupsTest()
Method Detail

configureDirectory

protected void configureDirectory(Properties directorySettings)
Description copied from class: BaseTest
Configures a runtime Crowd object that connects to the Sun instance.

Overrides:
configureDirectory in class BaseTest

loadTestData

protected void loadTestData()
                     throws Exception
Description copied from class: BaseTest
Called before every test run to add data needed for test.

Specified by:
loadTestData in class BaseTest
Throws:
Exception

removeTestData

protected void removeTestData()
                       throws DirectoryInstantiationException
Description copied from class: BaseTest
Called before loadTestData() AND after every test run to remove data added for test.

Specified by:
removeTestData in class BaseTest
Throws:
DirectoryInstantiationException

testFindLocalGroupByName

public void testFindLocalGroupByName()
                              throws Exception
Throws:
Exception

testFindLdapGroupByName

public void testFindLdapGroupByName()
                             throws Exception
Throws:
Exception

testAddUserToLocalGroup

public void testAddUserToLocalGroup()
                             throws Exception
Throws:
Exception

testAddUserToLdapGroupFails

public void testAddUserToLdapGroupFails()
                                 throws Exception
Throws:
Exception

testRemoveUserFromLocalGroup

public void testRemoveUserFromLocalGroup()
                                  throws Exception
Throws:
Exception

testRemoveUserFromLdapGroupFails

public void testRemoveUserFromLdapGroupFails()
                                      throws Exception
Throws:
Exception

testAddLocalGroupToLocalGroup

public void testAddLocalGroupToLocalGroup()
                                   throws Exception
Throws:
Exception

testRemoveLocalGroupFromLocalGroup

public void testRemoveLocalGroupFromLocalGroup()
                                        throws Exception
Throws:
Exception

testCannotAddLocalGroupWithSameNameAsLdap

public void testCannotAddLocalGroupWithSameNameAsLdap()
                                               throws Exception
Throws:
Exception

testCannotAddLocalGroupToLdapGroup

public void testCannotAddLocalGroupToLdapGroup()
                                        throws Exception
Throws:
Exception

testCanAddLdapGroupToLocalGroupWhenLocalGroupsAreEnabled

public void testCanAddLdapGroupToLocalGroupWhenLocalGroupsAreEnabled()
                                                              throws Exception
Throws:
Exception

testSearchAllGroups

public void testSearchAllGroups()
                         throws OperationFailedException
Throws:
OperationFailedException

testSearchAllGroupNamesWithRestrictions

public void testSearchAllGroupNamesWithRestrictions()
                                             throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupsOnLdapOnlyAttributes

public void testSearchGroupsOnLdapOnlyAttributes()
                                          throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupNamesOnLdapOnlyAttribute

public void testSearchGroupNamesOnLdapOnlyAttribute()
                                             throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForUserMembersOfLocalGroup

public void testSearchGroupRelationshipsForUserMembersOfLocalGroup()
                                                            throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForUserNameMembersOfLocalGroup

public void testSearchGroupRelationshipsForUserNameMembersOfLocalGroup()
                                                                throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForUserMembersOfLdapGroup

public void testSearchGroupRelationshipsForUserMembersOfLdapGroup()
                                                           throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForUserNameMembersOfLdapGroup

public void testSearchGroupRelationshipsForUserNameMembersOfLdapGroup()
                                                               throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupMembersOfLocalGroup

public void testSearchGroupRelationshipsForGroupMembersOfLocalGroup()
                                                             throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupNameMembersOfLocalGroup

public void testSearchGroupRelationshipsForGroupNameMembersOfLocalGroup()
                                                                 throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupMembersOfLdapGroup

public void testSearchGroupRelationshipsForGroupMembersOfLdapGroup()
                                                            throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupNameMembersOfLdapGroup

public void testSearchGroupRelationshipsForGroupNameMembersOfLdapGroup()
                                                                throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForCombinedGroupMembershipsOfUser

public void testSearchGroupRelationshipsForCombinedGroupMembershipsOfUser()
                                                                   throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForCombinedGroupNameMembershipsOfUser

public void testSearchGroupRelationshipsForCombinedGroupNameMembershipsOfUser()
                                                                       throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupMembershipsOfLocalGroup

public void testSearchGroupRelationshipsForGroupMembershipsOfLocalGroup()
                                                                 throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupNameMembershipsOfLocalGroup

public void testSearchGroupRelationshipsForGroupNameMembershipsOfLocalGroup()
                                                                     throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupMembershipsOfLdapGroup

public void testSearchGroupRelationshipsForGroupMembershipsOfLdapGroup()
                                                                throws OperationFailedException
Throws:
OperationFailedException

testSearchGroupRelationshipsForGroupNameMembershipsOfLdapGroup

public void testSearchGroupRelationshipsForGroupNameMembershipsOfLdapGroup()
                                                                    throws OperationFailedException
Throws:
OperationFailedException


Copyright © 2013 Atlassian. All Rights Reserved.