MethodSpyTargetInvocation

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

Link copied to clipboard
abstract fun useSpyIf(spyTarget: Any?, spyOn: SpyTarget)

Binds the given function to the Proxy.

Link copied to clipboard
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. The spy equals method will be used if the other object is not of the same type as the given Class of the hosting mock. The equals method will be used if the other object is of the same type as the given Class of the hosting mock.

Inheritors

Link copied to clipboard