Class AbstractEmbeddedLDAPTest

    • Constructor Detail

      • AbstractEmbeddedLDAPTest

        public AbstractEmbeddedLDAPTest()
    • Method Detail

      • getTestPartition

        protected org.apache.directory.server.core.partition.Partition getTestPartition()
      • getLDAPPort

        protected int getLDAPPort()
        Description copied from class: AbstractLDAPTest
        port to listen ldap for either embedded or external
        Specified by:
        getLDAPPort in class AbstractLDAPTest
        Returns:
        the embeddedPort
      • setUp

        public void setUp()
                   throws java.lang.Exception
        Description copied from class: AbstractLDAPTest
        Get's the initial context factory for the provider's ou=system context root.
        Overrides:
        setUp in class AbstractLDAPTest
        Throws:
        java.lang.Exception
        See Also:
        TestCase.setUp()
      • configureLdapData

        protected void configureLdapData()
                                  throws java.lang.Exception
        responsible for loading test data
        Overrides:
        configureLdapData in class AbstractLDAPTest
        Throws:
        java.lang.Exception
      • configureLdapServer

        protected void configureLdapServer​(org.apache.directory.server.ldap.LdapServer ldapServer)
                                    throws java.lang.Exception
        Description copied from class: AbstractLDAPTest
        register some dynamic mappings
        Overrides:
        configureLdapServer in class AbstractLDAPTest
        Throws:
        java.lang.Exception
      • configurePartition

        protected org.apache.directory.server.core.partition.Partition configurePartition()
                                                                                   throws java.lang.Exception
        Description copied from class: AbstractLDAPTest
        prepare partition , be aware at this method DirectoryService is not started yet so no session will be available
        Specified by:
        configurePartition in class AbstractLDAPTest
        Throws:
        java.lang.Exception
      • createFirstSeverEntry

        protected org.apache.directory.server.core.entry.ServerEntry createFirstSeverEntry​(org.apache.directory.server.core.partition.Partition partition)
                                                                                    throws javax.naming.NamingException
        creates first server entry in partition
        Throws:
        javax.naming.NamingException
      • clearPartition

        public void clearPartition()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception