Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EasyMock: Add one more expectation after replay

Tags:

java

easymock

Is it possible to add expectation after having mock object replayed?

like image 405
Konstantin Milyutin Avatar asked Aug 27 '11 21:08

Konstantin Milyutin


1 Answers

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.

like image 158
Tom Avatar answered Sep 29 '22 14:09

Tom