Basically andStubReturn() is used for methods that we do not care about for our test for the mock objects , but we're required to mock the return otherwise, the code will not function. The andStubReturn() methods aren't verified by EasyMock; whereas andReturn() methods are verified.
andStunReturn vs andReturn
最新推荐文章于 2019-12-30 18:24:19 发布