mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Various translations for RM-183
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@55749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -365,7 +365,7 @@ public class DispositionRestApiTest extends BaseRMWebScriptTestCase implements R
|
||||
assertEquals(1, events.length());
|
||||
JSONObject event1 = events.getJSONObject(0);
|
||||
assertEquals("case_closed", event1.get("name"));
|
||||
assertEquals("rmevent.case_closed", event1.get("label"));
|
||||
assertEquals("Case Closed", event1.get("label"));
|
||||
assertFalse(event1.getBoolean("complete"));
|
||||
assertFalse(event1.getBoolean("automatic"));
|
||||
|
||||
|
@@ -64,10 +64,14 @@ public class RoleRestApiTest extends BaseRMWebScriptTestCase
|
||||
{
|
||||
String role1 = GUID.generate();
|
||||
String role2 = GUID.generate();
|
||||
String role3 = GUID.generate();
|
||||
|
||||
// Create a couple or roles by hand
|
||||
filePlanRoleService.createRole(filePlan, role1, "My Test Role", getListOfCapabilities(5));
|
||||
filePlanRoleService.createRole(filePlan, role2, "My Test Role Too", getListOfCapabilities(5));
|
||||
|
||||
//The user can either enter a plain text label or a key to look up in a property file.
|
||||
filePlanRoleService.createRole(filePlan, role3, "bootstrap.rmadmin.lastName", getListOfCapabilities(5));
|
||||
|
||||
// create test group
|
||||
String groupName = GUID.generate();
|
||||
@@ -98,6 +102,12 @@ public class RoleRestApiTest extends BaseRMWebScriptTestCase
|
||||
assertEquals(role2, roleObj.get("name"));
|
||||
assertEquals("My Test Role Too", roleObj.get("displayLabel"));
|
||||
checkCapabilities(roleObj, 5);
|
||||
|
||||
//Custom role with a user entered message key
|
||||
roleObj = roles.getJSONObject(role3);
|
||||
assertNotNull(roleObj);
|
||||
assertEquals(role3, roleObj.get("name"));
|
||||
assertEquals("System Administrator", roleObj.get("displayLabel"));
|
||||
|
||||
// Get the roles, specifying the file plan
|
||||
rsp = sendRequest(new GetRequest(getRoleUrlByFilePlan()),200);
|
||||
|
Reference in New Issue
Block a user