Search in sources :

Example 1 with LdapSearchHandler

use of org.forgerock.openam.sm.datalayer.impl.ldap.LdapSearchHandler in project OpenAM by OpenRock.

the class LdapSearchHandlerTest method setUp.

@BeforeMethod
public void setUp() throws Exception {
    mockConnection = mock(Connection.class);
    mockRequest = mock(SearchRequest.class);
    debug = mock(Debug.class);
    handler = new LdapSearchHandler(new CTSDataLayerConfiguration("ou=test-case"), debug);
}
Also used : SearchRequest(org.forgerock.opendj.ldap.requests.SearchRequest) Connection(org.forgerock.opendj.ldap.Connection) LdapSearchHandler(org.forgerock.openam.sm.datalayer.impl.ldap.LdapSearchHandler) Debug(com.sun.identity.shared.debug.Debug) CTSDataLayerConfiguration(org.forgerock.openam.cts.impl.CTSDataLayerConfiguration) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

Debug (com.sun.identity.shared.debug.Debug)1 CTSDataLayerConfiguration (org.forgerock.openam.cts.impl.CTSDataLayerConfiguration)1 LdapSearchHandler (org.forgerock.openam.sm.datalayer.impl.ldap.LdapSearchHandler)1 Connection (org.forgerock.opendj.ldap.Connection)1 SearchRequest (org.forgerock.opendj.ldap.requests.SearchRequest)1 BeforeMethod (org.testng.annotations.BeforeMethod)1