mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Build fix, fallout from ALF-10117 (JBPM workflows should be hidden)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30358 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
|||||||
import org.alfresco.repo.security.person.TestGroupManager;
|
import org.alfresco.repo.security.person.TestGroupManager;
|
||||||
import org.alfresco.repo.security.person.TestPersonManager;
|
import org.alfresco.repo.security.person.TestPersonManager;
|
||||||
import org.alfresco.repo.web.scripts.BaseWebScriptTest;
|
import org.alfresco.repo.web.scripts.BaseWebScriptTest;
|
||||||
|
import org.alfresco.repo.workflow.WorkflowAdminServiceImpl;
|
||||||
import org.alfresco.repo.workflow.WorkflowModel;
|
import org.alfresco.repo.workflow.WorkflowModel;
|
||||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||||
import org.alfresco.service.cmr.model.FileFolderService;
|
import org.alfresco.service.cmr.model.FileFolderService;
|
||||||
@@ -102,6 +103,7 @@ public abstract class AbstractWorkflowRestApiTest extends BaseWebScriptTest
|
|||||||
private TestGroupManager groupManager;
|
private TestGroupManager groupManager;
|
||||||
|
|
||||||
protected WorkflowService workflowService;
|
protected WorkflowService workflowService;
|
||||||
|
protected WorkflowAdminServiceImpl workflowAdminService;
|
||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
private NamespaceService namespaceService;
|
private NamespaceService namespaceService;
|
||||||
private NodeRef packageRef;
|
private NodeRef packageRef;
|
||||||
@@ -1377,6 +1379,10 @@ public abstract class AbstractWorkflowRestApiTest extends BaseWebScriptTest
|
|||||||
FileFolderService fileFolderService = (FileFolderService) appContext.getBean("FileFolderService");
|
FileFolderService fileFolderService = (FileFolderService) appContext.getBean("FileFolderService");
|
||||||
nodeService = (NodeService) appContext.getBean("NodeService");
|
nodeService = (NodeService) appContext.getBean("NodeService");
|
||||||
|
|
||||||
|
// for the purposes of the tests make sure JBPM workflow definitions are visible
|
||||||
|
workflowAdminService = (WorkflowAdminServiceImpl) appContext.getBean("workflowAdminService");
|
||||||
|
workflowAdminService.setJBPMWorkflowDefinitionsVisible(true);
|
||||||
|
|
||||||
AuthorityService authorityService = (AuthorityService) appContext.getBean("AuthorityService");
|
AuthorityService authorityService = (AuthorityService) appContext.getBean("AuthorityService");
|
||||||
personManager = new TestPersonManager(authenticationService, personService, nodeService);
|
personManager = new TestPersonManager(authenticationService, personService, nodeService);
|
||||||
groupManager = new TestGroupManager(authorityService, searchService);
|
groupManager = new TestGroupManager(authorityService, searchService);
|
||||||
|
Reference in New Issue
Block a user