Fixed ALF-10540: Test disabled: ActivitiWorkflowRestApiTest/JBPMWorkflowRestApiTest testReviewPooledProcessFlow

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-09-30 23:03:35 +00:00
parent e61f82058f
commit 47d139e530

View File

@@ -19,7 +19,9 @@
package org.alfresco.repo.security.person;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.StoreRef;
@@ -54,11 +56,13 @@ public class TestGroupManager
public String createGroupIfNotExist(String groupShortName)
{
String fullName = authorityService.getName(AuthorityType.GROUP, groupShortName);
if(groups.containsKey(groupShortName) == false)
if (groups.containsKey(groupShortName) == false)
{
if (authorityService.authorityExists(fullName) == false)
{
fullName = authorityService.createAuthority(AuthorityType.GROUP, groupShortName, groupShortName, null);
Set<String> zones = new HashSet<String>(2, 1.0f);
zones.add(AuthorityService.ZONE_APP_DEFAULT);
fullName = authorityService.createAuthority(AuthorityType.GROUP, groupShortName, groupShortName, zones);
groups.put(groupShortName, findGroupNode(groupShortName));
}
}