@Test public void findByUsername() throws Exception { User actual = userDao.findByUsername("admin"); User expected = getAdmin(); assertReflectionEquals(expected, actual); }
public AppUser getUserByUsername(String username) { return userDao.findByUsername(username); }