Package org.multibit.mbm.client.interfaces.rest.api

Examples of org.multibit.mbm.client.interfaces.rest.api.AdminDeleteEntityDto


  }

  @Test
  public void adminDeleteUserAsHalJson() throws Exception {

    AdminDeleteEntityDto deleteUserRequest = new AdminDeleteEntityDto();
    deleteUserRequest.setReason("At user request");

    String actualResponse = configureAsClient("/admin/user/1")
      .accept(HalMediaType.APPLICATION_HAL_JSON)
      .entity(deleteUserRequest, MediaType.APPLICATION_JSON_TYPE)
      .delete(String.class);
View Full Code Here


  }

  @Test
  public void adminDeleteRoleAsHalJson() throws Exception {

    AdminDeleteEntityDto deleteRoleRequest = new AdminDeleteEntityDto();
    deleteRoleRequest.setReason("At role request");

    String actualResponse = configureAsClient("/admin/role/1")
      .accept(HalMediaType.APPLICATION_HAL_JSON)
      .entity(deleteRoleRequest, MediaType.APPLICATION_JSON_TYPE)
      .delete(String.class);
View Full Code Here

  }

  @Test
  public void adminDeleteItemAsHalJson() throws Exception {

    AdminDeleteEntityDto deleteItemRequest = new AdminDeleteEntityDto();
    deleteItemRequest.setReason("No longer available");

    String actualResponse = configureAsClient("/admin/item/1")
      .accept(HalMediaType.APPLICATION_HAL_JSON)
      .entity(deleteItemRequest, MediaType.APPLICATION_JSON_TYPE)
      .delete(String.class);
View Full Code Here

TOP

Related Classes of org.multibit.mbm.client.interfaces.rest.api.AdminDeleteEntityDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.