LoginUserDao extends BaseDao { public int updateUserPassword(LoginUser user) throws SQLException { if (user == null) { return 0; } String sql = "UPDATE login_users SET password = ? WHERE id = ?"; return this.updataBysql(sql, Parameter.varcharOf(StringUtils.EMPTY, user.getPassword()), Parameter.integerOf(StringUtils.EMPTY, user.getId())); }  Long insertUser(LoginUser user); int initAdmin(LoginUser user); int updateUserPassword(LoginUser user); List<LoginUser> getAllUsers(); LoginUser getUserById(Long userId); LoginUser getUserByNo(String userNo); LoginUser getUserByUserName(String userName); List<LoginUsersView> getUserByGroupId(Long groupId); int updateUser(LoginUser user); int deleteUser(Long userId); Long getTotalCount(Paging<LoginUser> paging); List<LoginUserView> findUserPageList(Paging<LoginUser> paging);  }
@Test public void updateUserPassword() throws Exception { loginUser.setId(21L); int count = loginUserDao.updateUserPassword(loginUser); System.out.println("updateUserPassword :-------> " + count); Assert.assertTrue(count > 0); }