verify

fun verify(exactly: Int? = null, atLeast: Int = 1, atMost: Int? = null, action: KMockContract.VerificationContext.() -> KMockContract.Expectation)

Verifies the last produced VerificationHandle.

Author

Matthias Geisler

See also

Parameters

exactly

optional parameter which indicates the exact amount of calls. This parameter overrides atLeast and atMost.

atLeast

optional parameter which indicates the minimum amount of calls.

atMost

optional parameter which indicates the maximum amount of calls.

action

producer of a VerificationHandle.

Throws

if given criteria are not met.