Mockito Kotlin 2.0 Released <https://github.com/nh...
# feed
e
d
Hi Sergey and first of all a huge thanks for your lib! I might have found a minor oversight:
Copy code
/**
 * 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()
?
e
@Daniel it’s not my lib, just posted about it 🙂 @nhaarman is the author