@Test public void shouldReturnNullAsSupplyingFacilityIfSupplyLineNotPresent() throws Exception { Order order = new Order(); assertThat(order.getSupplyingFacility(), is(nullValue())); }
public Facility getSupplyingFacility() { return supplyLine == null ? null : supplyLine.getSupplyingFacility(); }
Order extends BaseModel implements Comparable { public Facility getSupplyingFacility() { return supplyLine == null ? null : supplyLine.getSupplyingFacility(); } }
Order extends BaseModel implements Comparable { public Facility getSupplyingFacility() { return supplyLine == null ? null : supplyLine.getSupplyingFacility(); } Order(Rnr rnr);  Order(Long id);  Order(Rnr rnr, SupplyLine supplyLine);  Order(Long id, OrderStatus status); }
Order extends BaseModel implements Comparable { public Facility getSupplyingFacility() { return supplyLine == null ? null : supplyLine.getSupplyingFacility(); } Order(Rnr rnr);  Order(Long id);  Order(Rnr rnr, SupplyLine supplyLine);  Order(Long id, OrderStatus status); Facility getSupplyingFacility(); @Override int compareTo(Object o); }
Order extends BaseModel implements Comparable { public Facility getSupplyingFacility() { return supplyLine == null ? null : supplyLine.getSupplyingFacility(); } Order(Rnr rnr);  Order(Long id);  Order(Rnr rnr, SupplyLine supplyLine);  Order(Long id, OrderStatus status); Facility getSupplyingFacility(); @Override int compareTo(Object o);  }