assertEquals(10.0, item.getUnitPrice().getValue().doubleValue());
assertEquals(1, item.getQuantity());
}
public void testCartPosterBignumPrice() {
CheckoutShoppingCart checkoutShoppingCart =
apiContext().cartPoster()
.makeCart()
.addItem("itemName", "itemDescription", BigDecimal.valueOf(10.0), 1)
.build();
assertNull(checkoutShoppingCart.getCheckoutFlowSupport());
assertNull(checkoutShoppingCart.getOrderProcessingSupport());
ShoppingCart shoppingCart = checkoutShoppingCart.getShoppingCart();
assertNull(shoppingCart.getBuyerMessages());
assertNull(shoppingCart.getCartExpiration());
assertNull(shoppingCart.getMerchantPrivateData());
List<Item> items = shoppingCart.getItems().getItem();
assertEquals(1, items.size());