@Test public void test_getAdministrators_empty() { List<UserDetails> users = new ArrayList<UserDetails>(); Mockito.when(adminDetailsService.getAllAdmins()).thenReturn(users); List<UserDetails> retrievedUsers = adminManagerToTest.getAdministrators(); Assert.assertTrue(retrievedUsers.isEmpty()); }
@Override public List<UserDetails> getAdministrators() { return adminDetailsService.getAllAdmins(); }
AdminUserManager implements IAdminUserManager { @Override public List<UserDetails> getAdministrators() { return adminDetailsService.getAllAdmins(); } }
AdminUserManager implements IAdminUserManager { @Override public List<UserDetails> getAdministrators() { return adminDetailsService.getAllAdmins(); }  }
AdminUserManager implements IAdminUserManager { @Override public List<UserDetails> getAdministrators() { return adminDetailsService.getAllAdmins(); }  @Override List<UserDetails> getAdministrators(); @Override boolean isPasswordValid(String username, String password); @Override boolean updatePassword(String username, String oldPassword, String newPassword); }
AdminUserManager implements IAdminUserManager { @Override public List<UserDetails> getAdministrators() { return adminDetailsService.getAllAdmins(); }  @Override List<UserDetails> getAdministrators(); @Override boolean isPasswordValid(String username, String password); @Override boolean updatePassword(String username, String oldPassword, String newPassword);  }