mockito-kotlin / com.nhaarman.mockitokotlin2 / argWhere

argWhere

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

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

Parameters

predicate - A function that returns true when given T matches the predicate.