@Test public void convertScJudgmentForms_emptyList() { List<SupremeCourtJudgmentForm> scJudgmentForms = Lists.newArrayList(); List<SimpleEntity> convertedSimpleEntities = simpleEntityConverter.convertScJudgmentForms(scJudgmentForms); assertNotNull(convertedSimpleEntities); assertEquals(0, convertedSimpleEntities.size()); }
public List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms) { return scJudgmentForms.stream() .map(scJudgmentForm -> convertFromScJudgmentForm(scJudgmentForm)) .collect(Collectors.toList()); }
SimpleEntityConverter { public List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms) { return scJudgmentForms.stream() .map(scJudgmentForm -> convertFromScJudgmentForm(scJudgmentForm)) .collect(Collectors.toList()); } }
SimpleEntityConverter { public List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms) { return scJudgmentForms.stream() .map(scJudgmentForm -> convertFromScJudgmentForm(scJudgmentForm)) .collect(Collectors.toList()); }  }
SimpleEntityConverter { public List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms) { return scJudgmentForms.stream() .map(scJudgmentForm -> convertFromScJudgmentForm(scJudgmentForm)) .collect(Collectors.toList()); }  List<SimpleEntity> convertCcDivisions(List<CommonCourtDivision> ccDivisions); List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers); List<SimpleEntity> convertScChamberDivisions(List<SupremeCourtChamberDivision> scChamberDivisions); List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms); }
SimpleEntityConverter { public List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms) { return scJudgmentForms.stream() .map(scJudgmentForm -> convertFromScJudgmentForm(scJudgmentForm)) .collect(Collectors.toList()); }  List<SimpleEntity> convertCcDivisions(List<CommonCourtDivision> ccDivisions); List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers); List<SimpleEntity> convertScChamberDivisions(List<SupremeCourtChamberDivision> scChamberDivisions); List<SimpleEntity> convertScJudgmentForms(List<SupremeCourtJudgmentForm> scJudgmentForms);  }