KEYCLOAK-2720: Fix PermissionsTest

This commit is contained in:
Stan Silvert 2016-11-04 19:05:32 -04:00
parent 3035cbc5db
commit 3efd103712

View file

@ -1171,7 +1171,9 @@ public class PermissionsTest extends AbstractKeycloakTest {
}, Resource.USER, false); }, Resource.USER, false);
invoke(new InvocationWithResponse() { invoke(new InvocationWithResponse() {
public void invoke(RealmResource realm, AtomicReference<Response> response) { public void invoke(RealmResource realm, AtomicReference<Response> response) {
response.set(realm.groups().add(new GroupRepresentation())); GroupRepresentation group = new GroupRepresentation();
group.setName("mygroup");
response.set(realm.groups().add(group));
} }
}, Resource.USER, true); }, Resource.USER, true);