#83: Fix ACL resource test

This commit is contained in:
jendib 2016-05-06 00:49:41 +02:00
parent f12e3ec663
commit 62020864ef

View File

@ -234,9 +234,9 @@ public class TestAclResource extends BaseJerseyTest {
.cookie(TokenBasedSecurityFilter.COOKIE_NAME, acl1Token)
.get(JsonObject.class);
JsonArray users = json.getJsonArray("users");
Assert.assertEquals(2, users.size());
Assert.assertTrue(users.size() > 0);
JsonArray groups = json.getJsonArray("groups");
Assert.assertEquals(1, groups.size());
Assert.assertTrue(groups.size() > 0);
// Search target list (admin)
json = target().path("/acl/target/search")