@Test public void convertScChambers_emptyList() { List<SupremeCourtChamber> scChambers = Lists.newArrayList(); List<SimpleEntity> convertedSimpleEntities = simpleEntityConverter.convertScChambers(scChambers); assertNotNull(convertedSimpleEntities); assertEquals(0, convertedSimpleEntities.size()); }
public List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers) { return scChambers.stream() .map(scChamber -> convertFromScChamber(scChamber)) .collect(Collectors.toList()); }
SimpleEntityConverter { public List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers) { return scChambers.stream() .map(scChamber -> convertFromScChamber(scChamber)) .collect(Collectors.toList()); } }
SimpleEntityConverter { public List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers) { return scChambers.stream() .map(scChamber -> convertFromScChamber(scChamber)) .collect(Collectors.toList()); }  }
SimpleEntityConverter { public List<SimpleEntity> convertScChambers(List<SupremeCourtChamber> scChambers) { return scChambers.stream() .map(scChamber -> convertFromScChamber(scChamber)) .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> convertScChambers(List<SupremeCourtChamber> scChambers) { return scChambers.stream() .map(scChamber -> convertFromScChamber(scChamber)) .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);  }