mockito-kotlin / com.nhaarman.mockitokotlin2 / argForWhich

argForWhich

inline fun <reified T : Any> argForWhich(noinline predicate: T.() -> Boolean): T

Alias for argThat.

Creates a custom argument matcher. null values will never evaluate to true.

Parameters

predicate - An extension function on T that returns true when a T matches the predicate.