public abstract class AbstractEmbeddedLDAPTest extends AbstractLDAPTest
| Modifier and Type | Field and Description |
|---|---|
protected static 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 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 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 String getLDAPHost()
AbstractLDAPTestgetLDAPHost in class AbstractLDAPTestpublic void setUp()
throws Exception
AbstractLDAPTestsetUp in class AbstractLDAPTestExceptionjunit.framework.TestCase#setUp()protected void configureLdapData()
throws Exception
configureLdapData in class AbstractLDAPTestExceptionprotected void configureLdapServer(LdapServer ldapServer)
throws Exception
AbstractLDAPTestconfigureLdapServer in class AbstractLDAPTestExceptionprotected Partition configurePartition()
throws Exception
AbstractLDAPTestDirectoryService is not started yet so no session will be
availableconfigurePartition in class AbstractLDAPTestExceptionprotected ServerEntry createFirstSeverEntry(Partition partition)
throws NamingException
NamingExceptionCopyright © 2017 SAP SE. All Rights Reserved.