ProxyFactory

interface ProxyFactory

Entrypoint to instantiate a Proxy.

Author

Matthias Geisler

Functions

Link copied to clipboard
abstract fun <ReturnValue, SideEffect : Function<ReturnValue>> createAsyncFunProxy(id: String, collector: KMockContract.Collector = NoopCollector, ignorableForVerification: Boolean = false, freeze: Boolean = true): KMockContract.AsyncFunProxy<ReturnValue, SideEffect>

Instantiates a AsyncFunProxy.

Link copied to clipboard
abstract fun <Value> createPropertyProxy(id: String, collector: KMockContract.Collector = NoopCollector, freeze: Boolean = true): KMockContract.PropertyProxy<Value>

Instantiates a PropertyProxy.

Link copied to clipboard
abstract fun <ReturnValue, SideEffect : Function<ReturnValue>> createSyncFunProxy(id: String, collector: KMockContract.Collector = NoopCollector, ignorableForVerification: Boolean = false, freeze: Boolean = true): KMockContract.SyncFunProxy<ReturnValue, SideEffect>

Instantiates a SyncFunProxy.

Inheritors

Link copied to clipboard