@Test public void whenSelectViewThenReturnAllProductInCart() { cartAPI.add(product); cartAPI.add(product2); Assert.assertEquals(products, cartAPI.getCart()); }
@Test public void whenRemoveAProductThenRemoveFromCart() { cartAPI.add(product); Assert.assertTrue(cartAPI.remove(product)); }
@Test public void whenSelectAProductThenAddToCart() { Assert.assertTrue(cartAPI.add(product)); }