hasBeenCalledWith

abstract fun KMockContract.FunProxy<*, *>.hasBeenCalledWith(vararg arguments: Any?): KMockContract.Expectation

Collects all invocation of an FunProxy which matches the given Arguments.

Return

Expectation

See also

Parameters

arguments

or constraints which calls must match. The arguments/constraints must follow the order of the mocked/stubbed function but can contain gaps and do not need to all arguments.