@Test public void getDiscountTest() { OrderDiscount orderDiscount = order.Discount(); assertNotNull(order.Discount()); assertEquals(orderDiscount, order.Discount()); }
public OrderDiscount Discount() { if (orderDiscount == null) { orderDiscount = new OrderDiscount(this); } return orderDiscount; }
Order extends BusinessObject { public OrderDiscount Discount() { if (orderDiscount == null) { orderDiscount = new OrderDiscount(this); } return orderDiscount; } }
Order extends BusinessObject { public OrderDiscount Discount() { if (orderDiscount == null) { orderDiscount = new OrderDiscount(this); } return orderDiscount; } Order(Tracker tracker); }
Order extends BusinessObject { public OrderDiscount Discount() { if (orderDiscount == null) { orderDiscount = new OrderDiscount(this); } return orderDiscount; } Order(Tracker tracker); OrderDiscount Discount(); OrderAmount Amount(); OrderDelivery Delivery(); OrderCustomVars CustomVars(); String getOrderId(); double getTurnover(); int getStatus(); boolean isNewCustomer(); int getPaymentMethod(); boolean isConfirmationRequired(); Order setOrderId(String orderId); Order setTurnover(double turnover); Order setStatus(int status); Order setNewCustomer(boolean newCustomer); Order setPaymentMethod(int paymentMethod); Order setConfirmationRequired(boolean confirmationRequired); }
Order extends BusinessObject { public OrderDiscount Discount() { if (orderDiscount == null) { orderDiscount = new OrderDiscount(this); } return orderDiscount; } Order(Tracker tracker); OrderDiscount Discount(); OrderAmount Amount(); OrderDelivery Delivery(); OrderCustomVars CustomVars(); String getOrderId(); double getTurnover(); int getStatus(); boolean isNewCustomer(); int getPaymentMethod(); boolean isConfirmationRequired(); Order setOrderId(String orderId); Order setTurnover(double turnover); Order setStatus(int status); Order setNewCustomer(boolean newCustomer); Order setPaymentMethod(int paymentMethod); Order setConfirmationRequired(boolean confirmationRequired);  }