@Test public void shouldConvertStringUsersToCanidateUsers(){ String user = "user1"; List<String> userList = new ArrayList<>(); userList.add(user); List<CandidateUser> convertedUserList = toCandidateUserConverter.from(userList); assertThat(convertedUserList.get(0)).isInstanceOf(CandidateUser.class); assertThat(convertedUserList.get(0).getUser()).isEqualTo(user); }
public List<CandidateUser> from (List<String> users){ List<CandidateUser> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateUser(user))); return list; }
ToCandidateUserConverter { public List<CandidateUser> from (List<String> users){ List<CandidateUser> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateUser(user))); return list; } }
ToCandidateUserConverter { public List<CandidateUser> from (List<String> users){ List<CandidateUser> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateUser(user))); return list; }  }
ToCandidateUserConverter { public List<CandidateUser> from (List<String> users){ List<CandidateUser> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateUser(user))); return list; }  List<CandidateUser> from(List<String> users); }
ToCandidateUserConverter { public List<CandidateUser> from (List<String> users){ List<CandidateUser> list = new ArrayList<>(); users.forEach(user -> list.add(new CandidateUser(user))); return list; }  List<CandidateUser> from(List<String> users);  }