1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-17 03:31:48 +00:00

#18: Add/remove users from groups

This commit is contained in:
jendib
2016-03-20 17:30:36 +01:00
parent 689a4e6aae
commit ced64a5d1f
9 changed files with 94 additions and 14 deletions

View File

@@ -130,6 +130,9 @@ public class TestGroupResource extends BaseJerseyTest {
.get(JsonObject.class);
Assert.assertEquals("g12new", json.getString("name"));
Assert.assertEquals("g11", json.getString("parent"));
JsonArray members = json.getJsonArray("members");
Assert.assertEquals(1, members.size());
Assert.assertEquals("group1", members.getString(0));
// Remove group1 from g12new
json = target().path("/group/g12new/group1").request()