useSpyIf

abstract fun useSpyIf(spyTarget: Any?, spyOn: SpyTarget)

Binds the given function to the Proxy.

Parameters

spyTarget

the referenced object which is spied upon.

spyOn

the referenced Spy method.