@Test public void shouldPrepareRequisitionsForApproval() throws Exception { Rnr rnr = make(a(defaultRequisition, with(emergency, true))); rnr.setModifiedDate(new Date()); List<Rnr> rnrList = Arrays.asList(rnr); List<RnrDTO> rnrDTOs = RnrDTO.prepareForListApproval(rnrList); assertThat(rnrDTOs.size(), is(1)); RnrDTO rnrDTO = rnrDTOs.get(0); assertRnrDTO(rnrDTO, rnr); }
@Deprecated public static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions) { List<RnrDTO> result = new ArrayList<>(); for (Rnr requisition : requisitions) { result.add(prepareDTOWithSupplyingDepot(requisition)); } return result; }
RnrDTO { @Deprecated public static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions) { List<RnrDTO> result = new ArrayList<>(); for (Rnr requisition : requisitions) { result.add(prepareDTOWithSupplyingDepot(requisition)); } return result; } }
RnrDTO { @Deprecated public static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions) { List<RnrDTO> result = new ArrayList<>(); for (Rnr requisition : requisitions) { result.add(prepareDTOWithSupplyingDepot(requisition)); } return result; }  }
RnrDTO { @Deprecated public static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions) { List<RnrDTO> result = new ArrayList<>(); for (Rnr requisition : requisitions) { result.add(prepareDTOWithSupplyingDepot(requisition)); } return result; }  @Deprecated static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions); static List<RnrDTO> prepareDTOsForListApproval(List<RnrDTO> requisitions); static List<RnrDTO> prepareForView(List<Rnr> requisitions); static RnrDTO prepareForOrderView(Rnr requisition); }
RnrDTO { @Deprecated public static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions) { List<RnrDTO> result = new ArrayList<>(); for (Rnr requisition : requisitions) { result.add(prepareDTOWithSupplyingDepot(requisition)); } return result; }  @Deprecated static List<RnrDTO> prepareForListApproval(List<Rnr> requisitions); static List<RnrDTO> prepareDTOsForListApproval(List<RnrDTO> requisitions); static List<RnrDTO> prepareForView(List<Rnr> requisitions); static RnrDTO prepareForOrderView(Rnr requisition);  }