NonIntrusiveFunConfigurator

Functions

Link copied to clipboard
abstract fun useRelaxerIf(condition: Boolean, relaxer: (String) -> ReturnValue)

Binds a given Relaxer function to a Proxy if the condition is true. This will wipe a given relaxer.

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

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
abstract fun useUnitFunRelaxerIf(condition: Boolean)

Binds the internal UnitFunRelaxer to the Proxy, if the given condition is true. It wipes a given relaxer.