Method Spy Target Invocation
Binds a SpyTarget to a invocation.
Author
Matthias Geisler
Parameters
Return Value
the return value type of the hosting Proxy.
Spy Target
the function signature of the spy target closure.
Functions
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.