mockito-kotlin / com.nhaarman.mockitokotlin2 / verify

verify

fun <T> verify(mock: T): T

Verifies certain behavior happened once.

Alias for Mockito.verify.

fun <T> verify(mock: T, mode: VerificationMode): T

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

Alias for Mockito.verify.

inline fun <T> verify(mock: T, block: VerifyScope<T>.() -> Unit): Unit

Verify multiple calls on mock Supports an easier to read style of

verify(mock) {
    2 * { call() }
}