Search in sources :

Example 1 with CTSDataLayerConfiguration

use of org.forgerock.openam.cts.impl.CTSDataLayerConfiguration 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)

Example 2 with CTSDataLayerConfiguration

use of org.forgerock.openam.cts.impl.CTSDataLayerConfiguration in project OpenAM by OpenRock.

the class LdapQueryBuilderTest method setUp.

@BeforeMethod
public void setUp() throws Exception {
    config = new CTSDataLayerConfiguration("ou=test-case");
    searchHandler = mock(LdapSearchHandler.class);
    mockConnection = mock(Connection.class);
    partialTokenEntryConverter = mock(EntryConverter.class);
    tokenEntryConverter = mock(EntryConverter.class);
    Map<Class, EntryConverter> converterMap = new HashMap<Class, EntryConverter>();
    converterMap.put(PartialToken.class, partialTokenEntryConverter);
    converterMap.put(Token.class, tokenEntryConverter);
    builder = new LdapQueryBuilder(config, searchHandler, mock(Debug.class), converterMap);
}
Also used : HashMap(java.util.HashMap) Connection(org.forgerock.opendj.ldap.Connection) CTSDataLayerConfiguration(org.forgerock.openam.cts.impl.CTSDataLayerConfiguration) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with CTSDataLayerConfiguration

use of org.forgerock.openam.cts.impl.CTSDataLayerConfiguration in project OpenAM by OpenRock.

the class LdapTokenAttributeConversionTest method generateTokenAttributeConversion.

private LdapTokenAttributeConversion generateTokenAttributeConversion() {
    LdapDataLayerConfiguration config = new CTSDataLayerConfiguration("ou=test-case");
    LDAPDataConversion dataConversion = new LDAPDataConversion();
    return new LdapTokenAttributeConversion(dataConversion, config);
}
Also used : LdapDataLayerConfiguration(org.forgerock.openam.sm.datalayer.impl.ldap.LdapDataLayerConfiguration) CTSDataLayerConfiguration(org.forgerock.openam.cts.impl.CTSDataLayerConfiguration)

Aggregations

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