@Test public void findAllUsers() { userSystem.start(); List<String> userIds = userSystem.findAllUsers().stream() .map(User::getId) .collect(Collectors.toList()); for (String user : USERS) { assertTrue("User: " + user + " was not found", userIds.contains(user)); } }
@Override public List<User> findAllUsers() { return userGroupInfo.getUsers(); }
SimpleUserSystemService implements UserSystemService { @Override public List<User> findAllUsers() { return userGroupInfo.getUsers(); } }
SimpleUserSystemService implements UserSystemService { @Override public List<User> findAllUsers() { return userGroupInfo.getUsers(); } SimpleUserSystemService(); }
SimpleUserSystemService implements UserSystemService { @Override public List<User> findAllUsers() { return userGroupInfo.getUsers(); } SimpleUserSystemService(); @Override void start(); @Override String getName(); @Override List<User> findAllUsers(); List<Group> findAllGroups(); @Override void test(); @Override User findUser(String id); }
SimpleUserSystemService implements UserSystemService { @Override public List<User> findAllUsers() { return userGroupInfo.getUsers(); } SimpleUserSystemService(); @Override void start(); @Override String getName(); @Override List<User> findAllUsers(); List<Group> findAllGroups(); @Override void test(); @Override User findUser(String id); static final String USERS_FILE; static final String SKILLS_FILE; static final String AFFINITIES_FILE; static final String NAME; }