Help save net neutrality! Learn more.
Close

#43 Verify with timeout

open
EasyMock (33)
5
2012-10-05
2011-05-25
Rob Eden
No

It would be very helpful to allow a timeout for verification. Perhaps something like "verify(long timeout,Object...mocks)".

It's often necessary with asynchronous calls (such as listeners) to allow a bit of time for messages to be delivered. There could be a sleep before the verify, but that can dramatically slow down tests since they have to wait the maximum amount of allowable time.

Discussion


Log in to post a comment.