@Test public void findUserByUserName() { User user = userService.findUserByUserName("admin"); assertEquals(user.getUserName(), "admin"); }
public User findUserByUserName(String userName) { return userDao.findUserByUserName(userName); }
UserService { public User findUserByUserName(String userName) { return userDao.findUserByUserName(userName); } }
UserService { public User findUserByUserName(String userName) { return userDao.findUserByUserName(userName); }  }
UserService { public User findUserByUserName(String userName) { return userDao.findUserByUserName(userName); }  boolean hasMatchUser(String userName, String password); User findUserByUserName(String userName); void loginSuccess(User user); }
UserService { public User findUserByUserName(String userName) { return userDao.findUserByUserName(userName); }  boolean hasMatchUser(String userName, String password); User findUserByUserName(String userName); void loginSuccess(User user);  }