protected String createClient(ClientRepresentation clientRep) { Response resp = testRealmResource().clients().create(clientRep); resp.close(); String id = ApiUtil.getCreatedId(resp); assertAdminEvents.assertEvent( getRealmId(), OperationType.CREATE, AdminEventPaths.clientResourcePath(id), clientRep); return id; }
protected void removeClient(String clientDbId) { testRealmResource().clients().get(clientDbId).remove(); assertAdminEvents.assertEvent( getRealmId(), OperationType.DELETE, AdminEventPaths.clientResourcePath(clientDbId)); }