Verify with timeout
Brought to you by:
tammofreese
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.