mockito-kotlin / org.mockito.kotlin / org.mockito.stubbing.Stubber / wheneverBlocking

wheneverBlocking

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

Alias for when with suspending function

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