如果遇到这样的消息,一定要确认连接到数据库的用户或应用程序是否提供了合法的用户ID和口令。
If you ever encounter these messages, ensure that the user or application connecting to the database has provided a valid user id and password.
用户身份验证确认用户名和口令是否正确。
User authentication validates that the user name and password are correct.
要确认数据库中的口令更新,可以使用DbUnit的查询api,它帮助比较数据库的结果与静态定义的XML文件,例如清单9中定义的那个。
To confirm an updated password in the database, you use DbUnit's Query API, which facilitates comparing database results with statically defined XML files, such as the one defined in Listing 9.
应用推荐