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

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.directory.DbCachingLdapTest

@ContextConfiguration(locations={"classpath:/dbCachingRemoteDirectoryApplicationContext.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 DbCachingLdapTest
extends Object

Tests the caching functionality of the DbCachingRemoteDirectory. This test shouldn't be running in a single transaction.


Constructor Summary
DbCachingLdapTest()
           
 
Method Summary
 void removeTestData()
          Removes test data from the LDAP server
 void setDataSource(DataSource dataSource)
           
 void setDirectoryDao(DirectoryDao directoryDao)
           
 void setDirectoryInstanceLoader(CacheableDirectoryInstanceLoader directoryInstanceLoader)
           
 void setDirectoryManager(MockDirectoryManager directoryManager)
           
 void setInternalDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader)
           
 void setLdapDirectoryInstanceLoader(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader)
           
 void setLdapPropertiesHelperImpl(LDAPPropertiesHelperImpl ldapPropertiesHelperImpl)
           
 void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
 void setUp()
           
 void tearDown()
           
 void testAddGroupViaCachingDirectory()
          Test adding a group.
 void testAddGroupViaLdap()
          Test adding a group.
 void testAddMembershipViaCachingDirectory()
          Test adding a membership.
 void testAddMembershipViaLdap()
          Test adding a membership.
 void testAddUserViaCachingDirectory()
          Test adding a user.
 void testAddUserViaLdap()
          Test adding a user.
 void testRemoveGroupViaCachingDirectory()
          Test removing a group.
 void testRemoveGroupViaLdap()
          Test removing a group.
 void testRemoveMembershipViaCachingDirectory()
          Test removing a membership.
 void testRemoveMembershipViaLdap()
          Test removing a membership.
 void testRemoveUserViaCachingDirectory()
          Test removing a user.
 void testRemoveUserViaLdap()
          Test removing a user.
 void testSearchOperations()
          Test the basic search operations to make sure the work normally.
 void testUpdateGroupViaCachingDirectory()
          Test Update a group.
 void testUpdateGroupViaLdap()
          Test Update a group.
 void testUpdateUserViaCachingDirectory()
          Test Update a user.
 void testUpdateUserViaLdap()
          Test Update a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbCachingLdapTest

public DbCachingLdapTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()

removeTestData

public void removeTestData()
Removes test data from the LDAP server


testSearchOperations

public void testSearchOperations()
                          throws Exception
Test the basic search operations to make sure the work normally.

Throws:
Exception

testAddUserViaLdap

public void testAddUserViaLdap()
                        throws Exception
Test adding a user. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testRemoveUserViaLdap

public void testRemoveUserViaLdap()
                           throws Exception
Test removing a user. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testUpdateUserViaLdap

public void testUpdateUserViaLdap()
                           throws Exception
Test Update a user. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testAddGroupViaLdap

public void testAddGroupViaLdap()
                         throws Exception
Test adding a group. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testRemoveGroupViaLdap

public void testRemoveGroupViaLdap()
                            throws Exception
Test removing a group. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testUpdateGroupViaLdap

public void testUpdateGroupViaLdap()
                            throws Exception
Test Update a group. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testAddMembershipViaLdap

public void testAddMembershipViaLdap()
                              throws Exception
Test adding a membership. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testRemoveMembershipViaLdap

public void testRemoveMembershipViaLdap()
                                 throws Exception
Test removing a membership. This test directly updates the ldap directory and checks the correct results are seen after the sync is done, but not before.

Throws:
Exception

testAddUserViaCachingDirectory

public void testAddUserViaCachingDirectory()
                                    throws Exception
Test adding a user. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testRemoveUserViaCachingDirectory

public void testRemoveUserViaCachingDirectory()
                                       throws Exception
Test removing a user. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testUpdateUserViaCachingDirectory

public void testUpdateUserViaCachingDirectory()
                                       throws Exception
Test Update a user. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testAddGroupViaCachingDirectory

public void testAddGroupViaCachingDirectory()
                                     throws Exception
Test adding a group.

Throws:
Exception

testRemoveGroupViaCachingDirectory

public void testRemoveGroupViaCachingDirectory()
                                        throws Exception
Test removing a group. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testUpdateGroupViaCachingDirectory

public void testUpdateGroupViaCachingDirectory()
                                        throws Exception
Test Update a group. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testAddMembershipViaCachingDirectory

public void testAddMembershipViaCachingDirectory()
                                          throws Exception
Test adding a membership. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

testRemoveMembershipViaCachingDirectory

public void testRemoveMembershipViaCachingDirectory()
                                             throws Exception
Test removing a membership. This test performs updates via the dbCachingDirectory and checks the correct results are seen both before and after the sync is done.

Throws:
Exception

setDataSource

public void setDataSource(DataSource dataSource)

setLdapPropertiesHelperImpl

public void setLdapPropertiesHelperImpl(LDAPPropertiesHelperImpl ldapPropertiesHelperImpl)

setPasswordEncoderFactory

public void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)

setDirectoryDao

public void setDirectoryDao(DirectoryDao directoryDao)

setDirectoryManager

public void setDirectoryManager(MockDirectoryManager directoryManager)

setDirectoryInstanceLoader

public void setDirectoryInstanceLoader(CacheableDirectoryInstanceLoader directoryInstanceLoader)

setLdapDirectoryInstanceLoader

public void setLdapDirectoryInstanceLoader(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader)

setInternalDirectoryInstanceLoader

public void setInternalDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader)


Copyright © 2013 Atlassian. All Rights Reserved.