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

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.NestedGroupsTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ActiveDirectory2K3Test.AD2K3NestedGroupsTest, ApacheDS102Test.ApacheDS102NestedGroupsTest, ApacheDS154Test.ApacheDS154NestedGroupsTest

public abstract class NestedGroupsTest
extends BaseTest


Field Summary
protected  String firstName
           
protected  String groupName1
           
protected  String groupName2
           
protected  String groupName3
           
protected  String groupName4
           
protected  String groupName5
           
protected  String password
           
protected  String surName
           
protected  String userNameA
           
protected  String userNameB
           
protected  String userNameC
           
protected  String userNameD
           
protected  String userNameE
           
protected  String userNameF
           
protected  String userNameG
           
 
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
NestedGroupsTest()
           
 
Method Summary
protected  int getInitialGroupMemberCount()
           
protected  void loadTestData()
          Called as part of setUp()
protected  void removeTestData()
          Called as part of tearDown()
 void testAddUserToNestedGroups()
           
 void testIsGroupMemberDirect()
           
 void testIsGroupMemberDirectNonExistent()
           
 void testIsGroupMemberDirectNot()
           
 void testIsGroupMemberNested()
           
 void testNestedGroups()
           
 void testNestedGroupsDirectFetch()
           
 void testRemoveUserFromNestedGroupsFail()
           
 void testRemoveUserFromNestedGroupsOk()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest
configureDirectory, 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
 

Field Detail

groupName1

protected final String groupName1
See Also:
Constant Field Values

groupName2

protected final String groupName2
See Also:
Constant Field Values

groupName3

protected final String groupName3
See Also:
Constant Field Values

groupName4

protected final String groupName4
See Also:
Constant Field Values

groupName5

protected final String groupName5
See Also:
Constant Field Values

userNameA

protected final String userNameA
See Also:
Constant Field Values

userNameB

protected final String userNameB
See Also:
Constant Field Values

userNameC

protected final String userNameC
See Also:
Constant Field Values

userNameD

protected final String userNameD
See Also:
Constant Field Values

userNameE

protected final String userNameE
See Also:
Constant Field Values

userNameF

protected final String userNameF
See Also:
Constant Field Values

userNameG

protected final String userNameG
See Also:
Constant Field Values

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

NestedGroupsTest

public NestedGroupsTest()
Method Detail

removeTestData

protected void removeTestData()
                       throws DirectoryInstantiationException
Called as part of tearDown()

Specified by:
removeTestData in class BaseTest
Throws:
DirectoryInstantiationException

loadTestData

protected void loadTestData()
                     throws Exception
Called as part of setUp()

Specified by:
loadTestData in class BaseTest
Throws:
Exception

testNestedGroups

public void testNestedGroups()
                      throws Exception
Throws:
Exception

testAddUserToNestedGroups

public void testAddUserToNestedGroups()
                               throws Exception
Throws:
Exception

testRemoveUserFromNestedGroupsFail

public void testRemoveUserFromNestedGroupsFail()
                                        throws Exception
Throws:
Exception

testRemoveUserFromNestedGroupsOk

public void testRemoveUserFromNestedGroupsOk()
                                      throws Exception
Throws:
Exception

testNestedGroupsDirectFetch

public void testNestedGroupsDirectFetch()
                                 throws Exception
Throws:
Exception

testIsGroupMemberDirect

public void testIsGroupMemberDirect()
                             throws Exception
Throws:
Exception

testIsGroupMemberDirectNot

public void testIsGroupMemberDirectNot()
                                throws Exception
Throws:
Exception

testIsGroupMemberDirectNonExistent

public void testIsGroupMemberDirectNonExistent()
                                        throws Exception
Throws:
Exception

testIsGroupMemberNested

public void testIsGroupMemberNested()
                             throws Exception
Throws:
Exception

getInitialGroupMemberCount

protected int getInitialGroupMemberCount()


Copyright © 2013 Atlassian. All Rights Reserved.