Package de.hybris.platform.ldap.jalo
Class AbstractEmbeddedLDAPTest
java.lang.Object
de.hybris.platform.ldap.jalo.AbstractLDAPTest
de.hybris.platform.ldap.jalo.AbstractEmbeddedLDAPTest
- Direct Known Subclasses:
BasePlatformLDAPTest,LoginEmbeddedLDAPTest
Base class for embedded ldap test using ApacheDS server
-
Field Summary
FieldsFields inherited from class de.hybris.platform.ldap.jalo.AbstractLDAPTest
directoryService, ldapServer, rootDSE, schemaRoot, sysRoot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidresponsible for loading test dataprotected voidconfigureLdapServer(org.apache.directory.server.ldap.LdapServer ldapServer) register some dynamic mappingsprotected org.apache.directory.server.core.partition.Partitionprepare partition , be aware at this methodDirectoryServiceis not started yet so no session will be availableprotected org.apache.directory.server.core.entry.ServerEntrycreateFirstSeverEntry(org.apache.directory.server.core.partition.Partition partition) creates first server entry in partitionprotected Stringldap host domain name/IPprotected intport to listen ldap for either embedded or externalprotected org.apache.directory.server.core.partition.Partitionprotected booleanvoidsetUp()Get's the initial context factory for the provider's ou=system context root.Methods inherited from class de.hybris.platform.ldap.jalo.AbstractLDAPTest
addIndex, createPartition, doDelete, getAuthenticationType, getLDAPCredenetial, getLDAPPassword, getWiredContext, getWiredContext, getWorkingDirectory, importLdif, injectEntries, isDeleteLDAPServer, loadLdif, loadTestLdif, setContexts, setContexts, tearDown, tearDownLogger, verify
-
Field Details
-
EMBEDDED_HOST
- See Also:
-
EMBEDDED_PORT
protected static final int EMBEDDED_PORT- See Also:
-
-
Constructor Details
-
AbstractEmbeddedLDAPTest
public AbstractEmbeddedLDAPTest()
-
-
Method Details
-
getTestPartition
protected org.apache.directory.server.core.partition.Partition getTestPartition() -
isEmbeddedLdap
protected boolean isEmbeddedLdap()- Overrides:
isEmbeddedLdapin classAbstractLDAPTest
-
getLDAPPort
protected int getLDAPPort()Description copied from class:AbstractLDAPTestport to listen ldap for either embedded or external- Specified by:
getLDAPPortin classAbstractLDAPTest- Returns:
- the embeddedPort
-
getLDAPHost
Description copied from class:AbstractLDAPTestldap host domain name/IP- Specified by:
getLDAPHostin classAbstractLDAPTest
-
setUp
Description copied from class:AbstractLDAPTestGet's the initial context factory for the provider's ou=system context root.- Overrides:
setUpin classAbstractLDAPTest- Throws:
Exception- See Also:
-
TestCase.setUp()
-
configureLdapData
responsible for loading test data- Overrides:
configureLdapDatain classAbstractLDAPTest- Throws:
Exception
-
configureLdapServer
protected void configureLdapServer(org.apache.directory.server.ldap.LdapServer ldapServer) throws Exception Description copied from class:AbstractLDAPTestregister some dynamic mappings- Overrides:
configureLdapServerin classAbstractLDAPTest- Throws:
Exception
-
configurePartition
protected org.apache.directory.server.core.partition.Partition configurePartition() throws ExceptionDescription copied from class:AbstractLDAPTestprepare partition , be aware at this methodDirectoryServiceis not started yet so no session will be available- Specified by:
configurePartitionin classAbstractLDAPTest- Throws:
Exception
-
createFirstSeverEntry
protected org.apache.directory.server.core.entry.ServerEntry createFirstSeverEntry(org.apache.directory.server.core.partition.Partition partition) throws NamingException creates first server entry in partition- Throws:
NamingException
-
clearPartition
- Throws:
Exception
-