mockito-kotlin / com.nhaarman.mockitokotlin2 / verifyBlocking

verifyBlocking

fun <T> verifyBlocking(mock: T, f: suspend T.() -> Unit): Unit

Verifies certain suspending behavior happened once.

Warning: Only one method call can be verified in the function. Subsequent method calls are ignored!

fun <T> verifyBlocking(mock: T, mode: VerificationMode, f: suspend T.() -> Unit): Unit

Verifies certain behavior happened at least once / exact number of times / never.

Warning: Only one method call can be verified in the function. Subsequent method calls are ignored!