public abstract class AbstractEmbeddedLDAPTest extends AbstractLDAPTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EMBEDDED_HOST |
protected static int |
EMBEDDED_PORT |
directoryService, ldapServer, rootDSE, schemaRoot, sysRoot| Constructor and Description |
|---|
AbstractEmbeddedLDAPTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPartition() |
protected void |
configureLdapData()
responsible for loading test data
|
protected void |
configureLdapServer(LdapServer ldapServer)
register some dynamic mappings
|
protected Partition |
configurePartition()
prepare partition , be aware at this method
DirectoryService is not started yet so no session will be
available |
protected ServerEntry |
createFirstSeverEntry(Partition partition)
creates first server entry in partition
|
protected java.lang.String |
getLDAPHost()
ldap host domain name/IP
|
protected int |
getLDAPPort()
port to listen ldap for either embedded or external
|
protected Partition |
getTestPartition() |
protected boolean |
isEmbeddedLdap() |
void |
setUp()
Get's the initial context factory for the provider's ou=system context root.
|
addIndex, createPartition, doDelete, getAuthenticationType, getLDAPCredenetial, getLDAPPassword, getWiredContext, getWiredContext, getWorkingDirectory, importLdif, injectEntries, isDeleteLDAPServer, loadLdif, loadTestLdif, setContexts, setContexts, tearDown, tearDownLogger, verifyprotected static final java.lang.String EMBEDDED_HOST
protected static final int EMBEDDED_PORT
protected Partition getTestPartition()
protected boolean isEmbeddedLdap()
isEmbeddedLdap in class AbstractLDAPTestprotected int getLDAPPort()
AbstractLDAPTestgetLDAPPort in class AbstractLDAPTestprotected java.lang.String getLDAPHost()
AbstractLDAPTestgetLDAPHost in class AbstractLDAPTestpublic void setUp()
throws java.lang.Exception
AbstractLDAPTestsetUp in class AbstractLDAPTestjava.lang.Exceptionjunit.framework.TestCase#setUp()protected void configureLdapData()
throws java.lang.Exception
configureLdapData in class AbstractLDAPTestjava.lang.Exceptionprotected void configureLdapServer(LdapServer ldapServer)
throws java.lang.Exception
AbstractLDAPTestconfigureLdapServer in class AbstractLDAPTestjava.lang.Exceptionprotected Partition configurePartition()
throws java.lang.Exception
AbstractLDAPTestDirectoryService is not started yet so no session will be
availableconfigurePartition in class AbstractLDAPTestjava.lang.Exceptionprotected ServerEntry createFirstSeverEntry(Partition partition)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void clearPartition()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.