阅读背景:

模拟Spring Security中的身份验证对象

来源:互联网 

Now for the unit test I need the authenticate method to just pretend it worked correctly, in my case do nothing, so I can test if the method itself does the expected work (Authentication is tested elsewhere according to the unit testing principles, however authenticate needs to be called inside that method)Now for the unit test I need the authenticate m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: