#40 Modify Return values of Methods

EasyMock_3.0
open
EasyMock (33)
5
2012-10-05
2010-12-02
No

Hi,

we use a lot of utility methods for the tests, to provide common mocks for classes. But sometimes you have to modify a single return value, of those mocks objects, to test a failure case for example.

It does not seem to be possible to change the return value of a method once replay was called.

Reset removes all return values of a mock, right?

Is there maybe such a feature or maybe is it already planned? Could you add that?

Thanks a lot!

Regards, Ben.

Discussion


Log in to post a comment.