Search in sources :

Example 1 with ControlledProcessManager

use of com.adobe.acs.commons.mcp.ControlledProcessManager 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;
}
Also used : ActionManager(com.adobe.acs.commons.fam.ActionManager) ControlledProcessManager(com.adobe.acs.commons.mcp.ControlledProcessManager) ActionManagerFactory(com.adobe.acs.commons.fam.ActionManagerFactory)

Example 2 with ControlledProcessManager

use of com.adobe.acs.commons.mcp.ControlledProcessManager 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;
}
Also used : ActionManager(com.adobe.acs.commons.fam.ActionManager) ControlledProcessManager(com.adobe.acs.commons.mcp.ControlledProcessManager) ActionManagerFactory(com.adobe.acs.commons.fam.ActionManagerFactory)

Example 3 with ControlledProcessManager

use of com.adobe.acs.commons.mcp.ControlledProcessManager 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;
}
Also used : ActionManager(com.adobe.acs.commons.fam.ActionManager) ControlledProcessManager(com.adobe.acs.commons.mcp.ControlledProcessManager) ActionManagerFactory(com.adobe.acs.commons.fam.ActionManagerFactory)

Aggregations

ActionManager (com.adobe.acs.commons.fam.ActionManager)3 ActionManagerFactory (com.adobe.acs.commons.fam.ActionManagerFactory)3 ControlledProcessManager (com.adobe.acs.commons.mcp.ControlledProcessManager)3