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

    return userDao.findByUsername(username);
  }