阅读背景:

如何模拟正在测试的同一个类中的另一个方法?

来源:互联网 

I am writing JUnit Test case for a class which has two methods methodA,methodB. I would like to mock the call to the methodB from methodA in my test case I am using spy on the class which I am testing, but still the methodB gets executed.I am writing JUnit Test case for a class which




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

分享到: