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

Examples of org.multibit.mbm.client.interfaces.rest.api.cart.AdminUpdateCartDto


  public void adminUpdateCartAsHalJson() throws Exception {

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

    AdminUpdateCartDto updateCartRequest = new AdminUpdateCartDto();
    // Add a few new items
    updateCartRequest.getCartItems().add(new PublicCartItemDto("0316184136",3));
    // Remove by setting to zero
    updateCartRequest.getCartItems().add(new PublicCartItemDto("0099410672",0));

    URI uri = UriBuilder.fromPath(CartLinks.ADMIN_SELF_TEMPLATE).build(1);

    String actualResponse = configureAsClient(uri)
      .accept(HalMediaType.APPLICATION_HAL_JSON)
View Full Code Here

TOP

Related Classes of org.multibit.mbm.client.interfaces.rest.api.cart.AdminUpdateCartDto

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.