@Test public void shouldFillPODWithFacilityProgramAndPeriodFromRequisition() throws Exception { Rnr rnr = new Rnr(new Facility(2L), new Program(3L), new ProcessingPeriod(4L)); OrderPOD orderPod = new OrderPOD(); orderPod.fillPOD(rnr); assertThat(orderPod.getFacilityId(), is(2L)); assertThat(orderPod.getProgramId(), is(3L)); assertThat(orderPod.getPeriodId(), is(4L)); }
public void fillPOD(Rnr requisition) { this.facilityId = requisition.getFacility().getId(); this.programId = requisition.getProgram().getId(); this.periodId = requisition.getPeriod().getId(); }
OrderPOD extends BaseModel { public void fillPOD(Rnr requisition) { this.facilityId = requisition.getFacility().getId(); this.programId = requisition.getProgram().getId(); this.periodId = requisition.getPeriod().getId(); } }
OrderPOD extends BaseModel { public void fillPOD(Rnr requisition) { this.facilityId = requisition.getFacility().getId(); this.programId = requisition.getProgram().getId(); this.periodId = requisition.getPeriod().getId(); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); }
OrderPOD extends BaseModel { public void fillPOD(Rnr requisition) { this.facilityId = requisition.getFacility().getId(); this.programId = requisition.getProgram().getId(); this.periodId = requisition.getPeriod().getId(); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate); }
OrderPOD extends BaseModel { public void fillPOD(Rnr requisition) { this.facilityId = requisition.getFacility().getId(); this.programId = requisition.getProgram().getId(); this.periodId = requisition.getPeriod().getId(); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate);  }