mockito-kotlin / com.nhaarman.mockitokotlin2 / after

after

fun after(millis: Long): VerificationAfterDelay

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.