com.atlassian.crowd.acceptance.tests.persistence.manager.directory
Class DirectoryManagerGenericNestedGroupsTest

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.persistence.BaseSpringTestCase
                                      extended by com.atlassian.crowd.acceptance.tests.persistence.manager.directory.DirectoryManagerGenericNestedGroupsTest
All Implemented Interfaces:
junit.framework.Test

public class DirectoryManagerGenericNestedGroupsTest
extends BaseSpringTestCase

Tests the directory manager against a HSQL-backed InternalDirectory for the nested groups logic.


Field Summary
protected  String firstName
           
protected  String password
           
protected  String surName
           
 
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
DirectoryManagerGenericNestedGroupsTest()
           
 
Method Summary
protected  void addGroup(String name)
           
protected  void addUser(String name)
           
protected  String[] getConfigLocations()
           
 String getSampleDataFileName()
           
protected  void onSetUpBeforeTransaction()
           
 void setDirectoryManager(DirectoryManager directoryManager)
           
 void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)
           
 void testAddGroupToGroupCycleCreationFail()
           
 void testFindDirectoryById()
           
 void testIsGroupDirectGroupMember()
           
 void testIsGroupNestedGroupMember()
           
 void testIsUserDirectGroupMember()
           
 void testIsUserNestedGroupMember()
           
 void testRemoveGroupFromGroup()
           
 void testRemoveGroupFromGroupCycleDeletionFail()
           
 void testSearchDirectGroupMembershipsOfGroup()
           
 void testSearchDirectGroupMembershipsOfUser()
           
 void testSearchDirectGroupMembersOfGroup()
           
 void testSearchDirectUserMembersOfGroup()
           
 void testSearchNestedGroupMembershipsOfGroup()
           
 void testSearchNestedGroupMembershipsOfUser()
           
 void testSearchNestedGroupMembersOfGroup()
           
 void testSearchNestedUserMembersOfGroup()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.persistence.BaseSpringTestCase
flush, newTransactionForBatchOperations, onSetUp, setResetableHiLoGeneratorHelper
 
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
 
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
endTransaction, isDefaultRollback, isRollback, 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, createBeanDefinitionReader, customizeBeanFactory, 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
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
 

Field Detail

firstName

protected final String firstName
See Also:
Constant Field Values

surName

protected final String surName
See Also:
Constant Field Values

password

protected final String password
See Also:
Constant Field Values
Constructor Detail

DirectoryManagerGenericNestedGroupsTest

public DirectoryManagerGenericNestedGroupsTest()
Method Detail

getSampleDataFileName

public String getSampleDataFileName()
Specified by:
getSampleDataFileName in class BaseSpringTestCase

getConfigLocations

protected String[] getConfigLocations()
Overrides:
getConfigLocations in class BaseSpringTestCase

onSetUpBeforeTransaction

protected void onSetUpBeforeTransaction()
                                 throws Exception
Overrides:
onSetUpBeforeTransaction in class BaseSpringTestCase
Throws:
Exception

addGroup

protected void addGroup(String name)
                 throws Exception
Throws:
Exception

addUser

protected void addUser(String name)
                throws Exception
Throws:
Exception

testFindDirectoryById

public void testFindDirectoryById()
                           throws Exception
Throws:
Exception

testSearchDirectUserMembersOfGroup

public void testSearchDirectUserMembersOfGroup()
                                        throws Exception
Throws:
Exception

testSearchDirectGroupMembersOfGroup

public void testSearchDirectGroupMembersOfGroup()
                                         throws Exception
Throws:
Exception

testSearchDirectGroupMembershipsOfUser

public void testSearchDirectGroupMembershipsOfUser()
                                            throws Exception
Throws:
Exception

testSearchDirectGroupMembershipsOfGroup

public void testSearchDirectGroupMembershipsOfGroup()
                                             throws Exception
Throws:
Exception

testSearchNestedGroupMembersOfGroup

public void testSearchNestedGroupMembersOfGroup()
                                         throws Exception
Throws:
Exception

testSearchNestedUserMembersOfGroup

public void testSearchNestedUserMembersOfGroup()
                                        throws Exception
Throws:
Exception

testSearchNestedGroupMembershipsOfGroup

public void testSearchNestedGroupMembershipsOfGroup()
                                             throws Exception
Throws:
Exception

testSearchNestedGroupMembershipsOfUser

public void testSearchNestedGroupMembershipsOfUser()
                                            throws Exception
Throws:
Exception

testIsUserDirectGroupMember

public void testIsUserDirectGroupMember()
                                 throws Exception
Throws:
Exception

testIsUserNestedGroupMember

public void testIsUserNestedGroupMember()
                                 throws Exception
Throws:
Exception

testIsGroupDirectGroupMember

public void testIsGroupDirectGroupMember()
                                  throws Exception
Throws:
Exception

testIsGroupNestedGroupMember

public void testIsGroupNestedGroupMember()
                                  throws Exception
Throws:
Exception

testAddGroupToGroupCycleCreationFail

public void testAddGroupToGroupCycleCreationFail()
                                          throws Exception
Throws:
Exception

testRemoveGroupFromGroupCycleDeletionFail

public void testRemoveGroupFromGroupCycleDeletionFail()
                                               throws Exception
Throws:
Exception

testRemoveGroupFromGroup

public void testRemoveGroupFromGroup()
                              throws Exception
Throws:
Exception

setDirectoryManager

public void setDirectoryManager(DirectoryManager directoryManager)

setPasswordEncoderFactory

public void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)


Copyright © 2012 Atlassian. All Rights Reserved.