@Test public void testRemoveItem() throws Exception { List<CartItemInfo> cartItemInfos = cart.getAll(); assertEquals(1, cartItemInfos.size()); cart.removeItem(cartItemInfos.get(0)); assertTrue(cart.isEmpty()); }
@Override public void removeItem(CartItemInfo item) { getAllItems().remove(item); }
InMemoryCartFulfillmentProviderImpl extends AbstractFulfillmentProvider implements CartFulfillmentProvider { @Override public void removeItem(CartItemInfo item) { getAllItems().remove(item); } }
InMemoryCartFulfillmentProviderImpl extends AbstractFulfillmentProvider implements CartFulfillmentProvider { @Override public void removeItem(CartItemInfo item) { getAllItems().remove(item); } InMemoryCartFulfillmentProviderImpl(); }
InMemoryCartFulfillmentProviderImpl extends AbstractFulfillmentProvider implements CartFulfillmentProvider { @Override public void removeItem(CartItemInfo item) { getAllItems().remove(item); } InMemoryCartFulfillmentProviderImpl(); @Override CartItemInfo addItem(ProductInfo productInfo); @Override void removeItem(CartItemInfo item); @Override List<CartItemInfo> getAll(); @Override void clear(); @Override boolean isEmpty(); @Override List<CartItemInfo> getAllItems(); }
InMemoryCartFulfillmentProviderImpl extends AbstractFulfillmentProvider implements CartFulfillmentProvider { @Override public void removeItem(CartItemInfo item) { getAllItems().remove(item); } InMemoryCartFulfillmentProviderImpl(); @Override CartItemInfo addItem(ProductInfo productInfo); @Override void removeItem(CartItemInfo item); @Override List<CartItemInfo> getAll(); @Override void clear(); @Override boolean isEmpty(); @Override List<CartItemInfo> getAllItems();  }