use of org.forgerock.opendj.ldap.MemoryBackend in project OpenAM by OpenRock.
the class IdRepoTestBase method setUpSuite.
@BeforeClass
public void setUpSuite() throws Exception {
InjectorConfiguration.setGuiceModuleLoader(new GuiceModuleLoader() {
@Override
public Set<Class<? extends Module>> getGuiceModules(Class<? extends Annotation> aClass) {
return Collections.<Class<? extends Module>>singleton(TestGuiceModule.class);
}
});
PowerMockito.mockStatic(WebtopNaming.class);
idRepoListener = PowerMockito.mock(IdRepoListener.class);
when(WebtopNaming.getAMServerID()).thenReturn("01");
when(WebtopNaming.getSiteID(eq("01"))).thenReturn("02");
memoryBackend = decorateBackend(new MemoryBackend(new LDIFEntryReader(getClass().getResourceAsStream(getLDIFPath()))));
}
Aggregations