NonIntrusiveFunConfigurator

Configurator for non intrusive behaviour of FunProxies.

Author

Matthias Geisler

Functions

useRelaxerIf
Link copied to clipboard
common
abstract fun useRelaxerIf(condition: Boolean, relaxer: (String) -> ReturnValue)
Binds a given Relaxer function to a Proxy if the condition is true.
useSpyIf
Link copied to clipboard
common
abstract fun useSpyIf(spyTarget: Any?, spyOn: SideEffect)
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.
useUnitFunRelaxerIf
Link copied to clipboard
common
abstract fun useUnitFunRelaxerIf(condition: Boolean)
Binds the internal UnitFunRelaxer to the Proxy, if the given condition is true.