enleur
10/30/2018, 9:58 AMDaniel
10/30/2018, 5:27 PM/**
* Allows verifying over a given period. It causes a verify to wait for a specified period of time for a desired
* interaction rather than failing immediately if has not already happened. May be useful for testing in concurrent
* conditions.
*/
fun after(millis: Long): VerificationAfterDelay? {
return Mockito.after(millis)
}
The returned type is nullable but I guess it should not be, since we would have to write: verify(widening, after(delay)!!).invoke()
?enleur
10/30/2018, 6:25 PM