Non Intrusive Fun Configurator
interface NonIntrusiveFunConfigurator<ReturnValue, SideEffect : Function<ReturnValue>> : KMockContract.RelaxationFunConfigurator<ReturnValue, SideEffect> , KMockContract.MethodSpyTargetInvocation<ReturnValue, SideEffect>
Configurator for non intrusive behaviour of FunProxies.
Author
Matthias Geisler
Functions
Link copied to clipboard
Binds a given Relaxer function to a Proxy if the condition is true. This will wipe a given relaxer.
Link copied to clipboard
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.
Link copied to clipboard
Binds the internal UnitFunRelaxer to the Proxy, if the given condition is true. It wipes a given relaxer.