MethodSpyTargetInvocation

interface MethodSpyTargetInvocation<ReturnValue, SpyTarget : Function<ReturnValue>>

Binds a SpyTarget to a invocation.

Author

Matthias Geisler

Parameters

ReturnValue

the return value type of the hosting Proxy.

SpyTarget

the function signature of the spy target closure.

Functions

useSpyIf
Link copied to clipboard
common
abstract fun useSpyIf(spyTarget: Any?, spyOn: SpyTarget)
Binds the given function to the Proxy.
useSpyOnEqualsIf
Link copied to clipboard
common
abstract fun useSpyOnEqualsIf(spyTarget: Any?, other: Any?, spyOn: (Any?) -> Boolean, mockKlass: KClass<out Any>)
Binds the given function, which should be equals, to the Proxy.

Inheritors

KMockContract
Link copied to clipboard