Examples of SupplierUpdateDeliveryDto


Examples of org.multibit.mbm.client.interfaces.rest.api.delivery.SupplierUpdateDeliveryDto

  public void updateDeliveryAsHalJson() throws Exception {

    // Starting condition is Supplier has {book1: 1, book2: 2}
    // Ending condition is Supplier has {book1: 0, book2: 2, book3: 3}

    SupplierUpdateDeliveryDto updateDeliveryRequest = new SupplierUpdateDeliveryDto();
    // Add a few new items
    updateDeliveryRequest.getDeliveryItems().add(new SupplierDeliveryItemDto("0316184136",3));
    // Remove by setting to zero
    updateDeliveryRequest.getDeliveryItems().add(new SupplierDeliveryItemDto("0099410672",0));

    String actualResponse = configureAsClient(SupplierDeliveryResource.class)
      .accept(HalMediaType.APPLICATION_HAL_JSON)
      .entity(updateDeliveryRequest, MediaType.APPLICATION_JSON_TYPE)
      .put(String.class);
View Full Code Here

Examples of org.multibit.mbm.client.interfaces.rest.api.delivery.SupplierUpdateDeliveryDto

  public void updateDeliveryAsHalJson() throws Exception {

    // Starting condition is Supplier has {book1: 1, book2: 2}
    // Ending condition is Supplier has {book1: 0, book2: 2, book3: 3}

    SupplierUpdateDeliveryDto updateDeliveryRequest = new SupplierUpdateDeliveryDto();
    // Add a few new items
    updateDeliveryRequest.getDeliveryItems().add(new SupplierDeliveryItemDto("0316184136",3));
    // Remove by setting to zero
    updateDeliveryRequest.getDeliveryItems().add(new SupplierDeliveryItemDto("0099410672",0));

    String actualResponse = configureAsClient(SupplierDeliveryResource.class)
      .accept(HalMediaType.APPLICATION_HAL_JSON)
      .entity(updateDeliveryRequest, MediaType.APPLICATION_JSON_TYPE)
      .put(String.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.