@Test public void testGetTotalSum() { assertEquals(BigDecimal.valueOf(2.5), cartItemInfo.getTotalSum()); }
public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; }
CartItemInfo implements Serializable { public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; } }
CartItemInfo implements Serializable { public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; } private  CartItemInfo();  CartItemInfo(ProductInfo productInfo); }
CartItemInfo implements Serializable { public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; } private  CartItemInfo();  CartItemInfo(ProductInfo productInfo); String getUuid(); ProductInfo getProduct(); @Override boolean equals(Object o); @Override int hashCode(); BigDecimal getTotalSum(); }
CartItemInfo implements Serializable { public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; } private  CartItemInfo();  CartItemInfo(ProductInfo productInfo); String getUuid(); ProductInfo getProduct(); @Override boolean equals(Object o); @Override int hashCode(); BigDecimal getTotalSum();  }