@Test public void shouldConvertStringGroupsToCanidateGroups(){ String group = "group1"; List<String> groupList = new ArrayList<>(); groupList.add(group); List<CandidateGroup> convertedGroupList = toCandidateGroupConverter.from(groupList); assertThat(convertedGroupList.get(0)).isInstanceOf(CandidateGroup.class); assertThat(convertedGroupList.get(0).getGroup()).isEqualTo(group); }
public List<CandidateGroup> from (List<String> users){ List<CandidateGroup> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateGroup(user))); return list; }
ToCandidateGroupConverter { public List<CandidateGroup> from (List<String> users){ List<CandidateGroup> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateGroup(user))); return list; } }
ToCandidateGroupConverter { public List<CandidateGroup> from (List<String> users){ List<CandidateGroup> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateGroup(user))); return list; }  }
ToCandidateGroupConverter { public List<CandidateGroup> from (List<String> users){ List<CandidateGroup> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateGroup(user))); return list; }  List<CandidateGroup> from(List<String> users); }
ToCandidateGroupConverter { public List<CandidateGroup> from (List<String> users){ List<CandidateGroup> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateGroup(user))); return list; }  List<CandidateGroup> from(List<String> users);  }