mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-5506 Tests cleanup
This commit is contained in:
@@ -118,7 +118,7 @@ public class GroupsTests extends RestTest
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
|
||||
//AddChildGroup
|
||||
restClient.authenticateUser(adminUser).withCoreAPI().usingParams("include=zones").usingGroups().createGroup(subgroupBodyCreate);
|
||||
restClient.authenticateUser(adminUser).withCoreAPI().usingParams().usingGroups().createGroup(subgroupBodyCreate);
|
||||
restClient.assertStatusCodeIs(HttpStatus.CREATED);
|
||||
JsonObject groupMembershipGroupBody = Json.createObjectBuilder().add("id", "GROUP_"+subGroupName).add("memberType", "GROUP").build();
|
||||
String groupMembershipGroupBodyCreate = groupMembershipGroupBody.toString();
|
||||
|
@@ -620,7 +620,7 @@ public class GroupsTest extends BaseWebScriptTest
|
||||
try
|
||||
{
|
||||
/**
|
||||
* Create a root group with descrription
|
||||
* Create a root group
|
||||
*/
|
||||
{
|
||||
JSONObject newGroupJSON = new JSONObject();
|
||||
@@ -640,6 +640,7 @@ public class GroupsTest extends BaseWebScriptTest
|
||||
JSONObject data = top.getJSONObject("data");
|
||||
assertTrue(data.length() > 0);
|
||||
assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName"));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -652,6 +653,7 @@ public class GroupsTest extends BaseWebScriptTest
|
||||
JSONObject data = top.getJSONObject("data");
|
||||
assertTrue(data.length() > 0);
|
||||
assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName"));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user