public class LDAPStorageServiceTest extends Object
LDAPStorageService implementation.| Modifier and Type | Field and Description |
|---|---|
private String |
context
LDAP DN to test.
|
private com.unboundid.ldap.listener.InMemoryDirectoryServer |
directoryServer
In-memory directory server.
|
protected org.opensaml.storage.impl.LDAPStorageService |
storageService
Storage service to test.
|
| Constructor and Description |
|---|
LDAPStorageServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
protected PooledConnectionFactory |
getPooledConnectionFactory() |
protected org.opensaml.storage.impl.LDAPStorageService |
getStorageService() |
void |
invalidConfig() |
protected void |
setUp() |
void |
setupDirectoryServer()
Creates an UnboundID in-memory directory server.
|
protected void |
tearDown() |
void |
teardownDirectoryServer()
Shutdown the in-memory directory server.
|
void |
throwException() |
void |
validConfig() |
protected org.opensaml.storage.impl.LDAPStorageService storageService
private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
private final String context
protected void setUp()
throws ComponentInitializationException
ComponentInitializationExceptionprotected void tearDown()
public void setupDirectoryServer()
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException - if the in-memory directory server cannot be createdpublic void teardownDirectoryServer()
@Nonnull protected PooledConnectionFactory getPooledConnectionFactory()
@Nonnull protected org.opensaml.storage.impl.LDAPStorageService getStorageService()
public void throwException()
throws IOException
IOExceptionpublic void create()
throws IOException
IOExceptionpublic void invalidConfig()
public void validConfig()
throws ComponentInitializationException
ComponentInitializationExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.