com.atlassian.crowd.acceptance.tests.directory
Class PageAndRangeTest
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
com.atlassian.crowd.acceptance.tests.directory.BaseTest
com.atlassian.crowd.acceptance.tests.directory.PageAndRangeTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- ActiveDirectory2K3Test.AD2K3PageAndRangeTest, ApacheDS102Test.ApachePageAndRangeTest, ApacheDS154Test.ApachePageAndRangeTest
public class PageAndRangeTest
- extends BaseTest
These tests exist to make sure that paged controls work when there are c 2000 users in result set, and that large
numbers of group members is also correctly handled (eg. 1000+ users in an AD group).
Fields inherited from class com.atlassian.crowd.acceptance.tests.directory.BaseTest |
directory |
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 com.atlassian.crowd.acceptance.tests.directory.BaseTest |
addGroup, addUser, buildGroup, buildUser, configureDirectory, getConfigLocations, getDirectory, getDirectoryConfigFile, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PageAndRangeTest
public PageAndRangeTest()
buildUserName
protected java.lang.String buildUserName(int i)
buildGroupName
protected java.lang.String buildGroupName(int i)
removeUser
protected void removeUser(int i)
addUser
protected void addUser(int i)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeGroup
protected void removeGroup(int i)
addGroup
protected void addGroup(int i)
throws java.lang.Exception
- Throws:
java.lang.Exception
addUserToGroup
protected void addUserToGroup(int userIndex,
java.lang.String groupName)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeTestData
protected void removeTestData()
- Called as part of tearDown()
- Specified by:
removeTestData
in class BaseTest
loadTestData
protected void loadTestData()
throws DirectoryInstantiationException,
InvalidGroupException,
java.rmi.RemoteException,
InvalidPrincipalException,
InvalidCredentialException,
ObjectNotFoundException
- Called as part of setUp()
- Specified by:
loadTestData
in class BaseTest
- Throws:
DirectoryInstantiationException
InvalidGroupException
java.rmi.RemoteException
InvalidPrincipalException
InvalidCredentialException
ObjectNotFoundException
testLargeUserSearchResult
public void testLargeUserSearchResult()
throws java.lang.Exception
- NUM_USERS users in one searchresult - trigger paging.
- Throws:
java.lang.Exception
testLargeGroupSearchResult
public void testLargeGroupSearchResult()
throws java.lang.Exception
- NUM_GROUPS groups in one searchresult - trigger paging.
- Throws:
java.lang.Exception
testLargeGroupMemberSearchResult
public void testLargeGroupMemberSearchResult()
throws java.lang.Exception
- NUM_USERS users as members of one group. Triggers ranged results in AD.
- Throws:
java.lang.Exception
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.