fun inOrder(vararg mocks: Any): KInOrder
Creates KInOrder object that allows verifying mocks in order.
Wrapper for Mockito.inOrder that also allows to verify suspending method calls.
inline fun inOrder(vararg mocks: Any, evaluation: KInOrder.() -> Unit): Unit
Creates KInOrder object that allows verifying mocks in order. Accepts a lambda to allow easy evaluation.
Wrapper for Mockito.inOrder that also allows to verify suspending method calls.
inline fun <T> T.inOrder(block: InOrderOnType<T>.() -> Any): Unit
Allows KInOrder verification for a single mocked instance:
mock.inOrder { verify().foo() verifyBlocking { bar() } }