use of org.forgerock.openam.scripting.datastore.ScriptingDataStoreFactory in project OpenAM by OpenRock.
the class ScriptConfigurationServiceTest method setUp.
@BeforeMethod
public void setUp() throws ResourceException {
Logger logger = mock(Logger.class);
Subject subject = new Subject();
subject.getPrincipals().add(testUserPrinciple);
dataStore = mock(ScriptingDataStore.class);
ScriptingDataStoreFactory dataStoreFactory = mock(ScriptingDataStoreFactory.class);
when(dataStoreFactory.create(any(Subject.class), anyString())).thenReturn(dataStore);
service = new ScriptConfigurationService(logger, subject, "/", dataStoreFactory);
}
Aggregations