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

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.directory.DnRangeTest
Direct Known Subclasses:
ActiveDirectory2K3Test.AD2K3DnRangeTestCacheDisabled, ActiveDirectory2K3Test.AD2K3DnRangeTestCacheEnabled

@ContextConfiguration(locations={"classpath:/remoteDirectoryApplicationContext-config.xml","classpath:/applicationContext-CrowdEncryption.xml","classpath:/applicationContext-CrowdUtils.xml","classpath:/applicationContext-CrowdDAO.xml","classpath:/applicationContext-config.xml"})
@TestExecutionListeners(value={org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class})
@DirtiesContext(classMode=AFTER_CLASS)
public class DnRangeTest
extends Object

Tests RFC4519MemberDnRangedMapper and RFC4519MemberDnRangeOffsetMapper. This test is intended to be run without a transaction, therefore it uses manual session management.


Constructor Summary
  DnRangeTest()
           
protected DnRangeTest(String directoryConfigFile)
          JUnit4 requires exactly one public constructor, therefore this one is protected
 
Method Summary
 void _testBrowseLargeGroup()
          Assumes group has more than 1500 members

Check using two ways and assert the number of members found are equal

 void _testBrowseSmallGroup()
          Assumes group has less than 1500 members.
protected  DirectoryImpl configureDirectory(Properties directorySettings)
          Subclasses can override and decorate this method to test different directory configurations
 void setUp()
           
 void tearDown()
           
 void testBrowseGroups()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnRangeTest

public DnRangeTest()

DnRangeTest

protected DnRangeTest(String directoryConfigFile)
JUnit4 requires exactly one public constructor, therefore this one is protected

Parameters:
directoryConfigFile -
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

configureDirectory

protected DirectoryImpl configureDirectory(Properties directorySettings)
Subclasses can override and decorate this method to test different directory configurations

Parameters:
directorySettings -
Returns:
the initialised directory, with an ID

testBrowseGroups

public void testBrowseGroups()
                      throws Exception
Throws:
Exception

_testBrowseLargeGroup

public void _testBrowseLargeGroup()
                           throws Exception
Assumes group has more than 1500 members

Check using two ways and assert the number of members found are equal

Throws:
OperationFailedException
InterruptedException
Exception

_testBrowseSmallGroup

public void _testBrowseSmallGroup()
                           throws Exception
Assumes group has less than 1500 members.

This search will not need range iteration.

Throws:
OperationFailedException
InterruptedException
Exception


Copyright © 2014 Atlassian. All Rights Reserved.