@Test public void addOneTest() { orders.add("orderID", 78.0); assertEquals(1, tracker.getBusinessObjects().size()); }
public Order add(String orderId, double turnover) { Order order = new Order(tracker) .setOrderId(orderId) .setTurnover(turnover); tracker.getBusinessObjects().put(order.getId(), order); return order; }
Orders extends Helper { public Order add(String orderId, double turnover) { Order order = new Order(tracker) .setOrderId(orderId) .setTurnover(turnover); tracker.getBusinessObjects().put(order.getId(), order); return order; } }
Orders extends Helper { public Order add(String orderId, double turnover) { Order order = new Order(tracker) .setOrderId(orderId) .setTurnover(turnover); tracker.getBusinessObjects().put(order.getId(), order); return order; } Orders(Tracker tracker); }
Orders extends Helper { public Order add(String orderId, double turnover) { Order order = new Order(tracker) .setOrderId(orderId) .setTurnover(turnover); tracker.getBusinessObjects().put(order.getId(), order); return order; } Orders(Tracker tracker); Order add(String orderId, double turnover); Order add(String orderId, double turnover, int status); }
Orders extends Helper { public Order add(String orderId, double turnover) { Order order = new Order(tracker) .setOrderId(orderId) .setTurnover(turnover); tracker.getBusinessObjects().put(order.getId(), order); return order; } Orders(Tracker tracker); Order add(String orderId, double turnover); Order add(String orderId, double turnover, int status);  }