ProxySideEffectBuilder

interface ProxySideEffectBuilder<ReturnValue, SideEffect : Function<ReturnValue>>

Mitigator of the strict assignment policy for multiple SideEffects

Author

Matthias Geisler

Parameters

ReturnValue

the return value type of the hosting Proxy.

SideEffect

the function signature of the hosting Proxy.

Functions

run
Link copied to clipboard
common
abstract infix fun run(action: SideEffect)
Alias method for sideEffect
runs
Link copied to clipboard
common
abstract infix fun runs(action: SideEffect): KMockContract.ProxySideEffectBuilder<ReturnValue, SideEffect>
Convenient method for multiple SideEffects, which uses under the sideEffects property.

Properties

sideEffect
Link copied to clipboard
common
abstract var sideEffect: SideEffect
Setter/Getter in order to set/get a custom SideEffect for the function.
sideEffects
Link copied to clipboard
common
abstract val sideEffects: KMockContract.SideEffectChainBuilder<ReturnValue, SideEffect>
SideEffectChainBuilder to chain multiple SideEffects.

Inheritors

KMockContract
Link copied to clipboard