From 3efd103712e0cd04bc66361df679c99c9f458f15 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Fri, 4 Nov 2016 19:05:32 -0400 Subject: [PATCH] KEYCLOAK-2720: Fix PermissionsTest --- .../java/org/keycloak/testsuite/admin/PermissionsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/PermissionsTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/PermissionsTest.java index 29252d98d4..81d4fb2b07 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/PermissionsTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/PermissionsTest.java @@ -1171,7 +1171,9 @@ public class PermissionsTest extends AbstractKeycloakTest { }, Resource.USER, false); invoke(new InvocationWithResponse() { public void invoke(RealmResource realm, AtomicReference response) { - response.set(realm.groups().add(new GroupRepresentation())); + GroupRepresentation group = new GroupRepresentation(); + group.setName("mygroup"); + response.set(realm.groups().add(group)); } }, Resource.USER, true);