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);
}
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);
}
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);
}
Aggregations