EasyMock: Add one more expectation after replay

心不动则不痛 提交于 2021-01-27 03:50:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!