2627282930313233
} @Test public void makePizzaOrderDefault() { // create order PizzaOrder po = new PizzaOrder(7, pizza, PizzaBase.THIN); assertEquals(Long.valueOf(po.getPrice()), Long.valueOf(1000)); }
33343536373839404142
} @Test public void makePizzaOrderExtraTopping() { // create order PizzaOrder po = new PizzaOrder(7, pizza, PizzaBase.THIN); po.addTopping(t3); po.updatePrice(); assertEquals(Long.valueOf(po.getPrice()), Long.valueOf(1200)); }
42434445464748495051
} @Test public void makePizzaOrderRemoveTopping() { // create order PizzaOrder po = new PizzaOrder(7, pizza, PizzaBase.THIN); po.removeTopping(t2); po.updatePrice(); assertEquals(Long.valueOf(po.getPrice()), Long.valueOf(1000)); }