@Test public void loginSuccessfull() throws Exception { final List<Administrator> list = createAdminList(username, password); configureMockObjects(list); final AdministratorLoginResult result = dao.findUser(username, password); assertEquals(AdministratorLoginStatus.SUCCESS, result.getStatus()); assertNotNull(result.getAdministrator()); verifyMockObjects(); }
private void loginSuccessfull(final AdministratorLoginResult result, final Administrator admin) { result.setStatus(AdministratorLoginStatus.SUCCESS); result.setAdministrator(admin); }
AdministratorLoginDaoImpl implements AdministratorLoginDao { private void loginSuccessfull(final AdministratorLoginResult result, final Administrator admin) { result.setStatus(AdministratorLoginStatus.SUCCESS); result.setAdministrator(admin); } }
AdministratorLoginDaoImpl implements AdministratorLoginDao { private void loginSuccessfull(final AdministratorLoginResult result, final Administrator admin) { result.setStatus(AdministratorLoginStatus.SUCCESS); result.setAdministrator(admin); }  }
AdministratorLoginDaoImpl implements AdministratorLoginDao { private void loginSuccessfull(final AdministratorLoginResult result, final Administrator admin) { result.setStatus(AdministratorLoginStatus.SUCCESS); result.setAdministrator(admin); }  @Transactional AdministratorLoginResult findUser(final String username,
            final String password); @PersistenceContext void setEntityManager(final EntityManager em); }
AdministratorLoginDaoImpl implements AdministratorLoginDao { private void loginSuccessfull(final AdministratorLoginResult result, final Administrator admin) { result.setStatus(AdministratorLoginStatus.SUCCESS); result.setAdministrator(admin); }  @Transactional AdministratorLoginResult findUser(final String username,
            final String password); @PersistenceContext void setEntityManager(final EntityManager em);  }