mockito-kotlin / com.nhaarman.mockitokotlin2 / check

check

inline fun <reified T : Any> check(noinline predicate: (T) -> Unit): T

For usage with verification only.

For example: verify(myObject).doSomething(check { assertThat(it, is("Test")) })

Parameters

predicate - A function that performs actions to verify an argument T.