Esempio n. 1
0
  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;
  }
Esempio n. 2
0
  protected void removeClient(String clientDbId) {
    testRealmResource().clients().get(clientDbId).remove();

    assertAdminEvents.assertEvent(
        getRealmId(), OperationType.DELETE, AdminEventPaths.clientResourcePath(clientDbId));
  }