use of com.adobe.acs.commons.fam.ActionManagerFactory in project acs-aem-commons by Adobe-Consulting-Services.
the class BrokenLinksTest method getControlledProcessManager.
private ControlledProcessManager getControlledProcessManager() throws LoginException {
ActionManager am = getActionManager();
ActionManagerFactory amf = mock(ActionManagerFactoryImpl.class);
when(amf.createTaskManager(any(), any(), anyInt())).thenReturn(am);
ControlledProcessManager cpm = mock(ControlledProcessManager.class);
when(cpm.getActionManagerFactory()).thenReturn(amf);
when(cpm.getServiceResourceResolver()).thenReturn(getMockResolver());
return cpm;
}
use of com.adobe.acs.commons.fam.ActionManagerFactory in project acs-aem-commons by Adobe-Consulting-Services.
the class PageRelocatorTest method getControlledProcessManager.
private ControlledProcessManager getControlledProcessManager() throws LoginException {
ActionManager am = getActionManager();
ActionManagerFactory amf = mock(ActionManagerFactoryImpl.class);
when(amf.createTaskManager(any(), any(), anyInt())).thenReturn(am);
ControlledProcessManager cpm = mock(ControlledProcessManager.class);
when(cpm.getActionManagerFactory()).thenReturn(amf);
when(cpm.getServiceResourceResolver()).thenReturn(getMockResolver());
return cpm;
}
use of com.adobe.acs.commons.fam.ActionManagerFactory in project acs-aem-commons by Adobe-Consulting-Services.
the class FolderRelocatorTest method getControlledProcessManager.
private ControlledProcessManager getControlledProcessManager() throws LoginException {
ActionManager am = getActionManager();
ActionManagerFactory amf = mock(ActionManagerFactoryImpl.class);
when(amf.createTaskManager(any(), any(), anyInt())).thenReturn(am);
ControlledProcessManager cpm = mock(ControlledProcessManager.class);
when(cpm.getActionManagerFactory()).thenReturn(amf);
return cpm;
}
Aggregations