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

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

public class GroupRoleTest
extends BaseTest


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest
directory, directoryManager
 
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
GroupRoleTest()
           
 
Method Summary
protected  void configureDirectory(java.util.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 after every test run to remove data added for test.
 void testAddGroupWithNoTypeFail()
           
 void testFindGroupOfAnyType()
           
 void testFindGroupOfTypeGroup()
           
 void testFindGroupOfTypeRole()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest
addGroup, addGroup, addUser, addUser, buildGroup, buildUser, buildUser, getConfigLocations, getDirectoryConfigFile, getRemoteDirectory, onSetUp, onTearDown, removeGroup, removeRole, removeUser, setDirectoryConfigFile, setLdapPropertiesHelper, setupSpring
 
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, 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, 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
 

Constructor Detail

GroupRoleTest

public GroupRoleTest()
Method Detail

configureDirectory

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

Overrides:
configureDirectory in class BaseTest

removeTestData

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

Specified by:
removeTestData in class BaseTest

loadTestData

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

Specified by:
loadTestData in class BaseTest
Throws:
java.lang.Exception

testFindGroupOfAnyType

public void testFindGroupOfAnyType()
                            throws DirectoryInstantiationException,
                                   ObjectNotFoundException
Throws:
DirectoryInstantiationException
ObjectNotFoundException

testFindGroupOfTypeRole

public void testFindGroupOfTypeRole()
                             throws DirectoryInstantiationException
Throws:
DirectoryInstantiationException

testFindGroupOfTypeGroup

public void testFindGroupOfTypeGroup()
                              throws DirectoryInstantiationException
Throws:
DirectoryInstantiationException

testAddGroupWithNoTypeFail

public void testAddGroupWithNoTypeFail()
                                throws DirectoryInstantiationException,
                                       ObjectNotFoundException
Throws:
DirectoryInstantiationException
ObjectNotFoundException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.