verify

fun <T> MockedStatic<T>.verify(mode: VerificationMode, verification: MockedStatic.Verification)

Syntax sugar to enable SAM conversion syntax for MockedStatic.verify with a VerificationMode.

Example:

fooMockedStatic.verify(times(3)) { Foo.doSomething() }

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)

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

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