问题
Is it possible to add expectation after having mock object replayed?
回答1:
It is possible to reset a mock object and apply new expectations to it before replaying it again.
EasyMock.reset(myMock)
See the EasyMock documentation for more information.
来源:https://stackoverflow.com/questions/7217477/easymock-add-one-more-expectation-after-replay