Search in sources :

Example 1 with SysAdminParams

use of org.alfresco.repo.admin.SysAdminParams in project alfresco-repository by Alfresco.

the class InviteSenderTest method mockServices.

/**
 * @return ServiceRegistry
 */
private ServiceRegistry mockServices() {
    ActionService mockActionService = mockActionService();
    NodeService mockNodeService = mockNodeService();
    PersonService mockPersonService = mockPersonService();
    SearchService mockSearchService = mockSearchService();
    SiteService mockSiteService = mockSiteService();
    FileFolderService mockFileFolderService = mockFileFolderService();
    RepoAdminService mockRepoAdminService = mockRepoAdminService();
    SysAdminParams sysAdminParams = new SysAdminParamsImpl();
    ServiceRegistry services = mock(ServiceRegistry.class);
    when(services.getActionService()).thenReturn(mockActionService);
    when(services.getNodeService()).thenReturn(mockNodeService);
    when(services.getPersonService()).thenReturn(mockPersonService);
    when(services.getSearchService()).thenReturn(mockSearchService);
    when(services.getSiteService()).thenReturn(mockSiteService);
    when(services.getFileFolderService()).thenReturn(mockFileFolderService);
    when(services.getSysAdminParams()).thenReturn(sysAdminParams);
    when(services.getRepoAdminService()).thenReturn(mockRepoAdminService);
    return services;
}
Also used : SiteService(org.alfresco.service.cmr.site.SiteService) SysAdminParamsImpl(org.alfresco.repo.admin.SysAdminParamsImpl) NodeService(org.alfresco.service.cmr.repository.NodeService) PersonService(org.alfresco.service.cmr.security.PersonService) SearchService(org.alfresco.service.cmr.search.SearchService) SysAdminParams(org.alfresco.repo.admin.SysAdminParams) FileFolderService(org.alfresco.service.cmr.model.FileFolderService) ServiceRegistry(org.alfresco.service.ServiceRegistry) ActionService(org.alfresco.service.cmr.action.ActionService) RepoAdminService(org.alfresco.service.cmr.admin.RepoAdminService)

Aggregations

SysAdminParams (org.alfresco.repo.admin.SysAdminParams)1 SysAdminParamsImpl (org.alfresco.repo.admin.SysAdminParamsImpl)1 ServiceRegistry (org.alfresco.service.ServiceRegistry)1 ActionService (org.alfresco.service.cmr.action.ActionService)1 RepoAdminService (org.alfresco.service.cmr.admin.RepoAdminService)1 FileFolderService (org.alfresco.service.cmr.model.FileFolderService)1 NodeService (org.alfresco.service.cmr.repository.NodeService)1 SearchService (org.alfresco.service.cmr.search.SearchService)1 PersonService (org.alfresco.service.cmr.security.PersonService)1 SiteService (org.alfresco.service.cmr.site.SiteService)1