KMockContract

Contract Container of KMock

Author

Matthias Geisler

Types

Link copied to clipboard
fun interface ArgumentConstraint

Constraint for granular Argument verification.

Link copied to clipboard
interface Asserter

Container which holds actual references of proxy calls. The references are ordered by their invocation.

Link copied to clipboard

Provider for Assertions.

Link copied to clipboard
fun interface AssertionInsurance

Insurance that given Proxies are covered by the AssertionChain.

Link copied to clipboard

Asynchronous function Proxy in order to stub/mock asynchronous function behaviour.

Link copied to clipboard

Combination of AssertionInsurance and AssertionContext

Link copied to clipboard

Provider for Assertions.

Link copied to clipboard
fun interface Collector

Collector of a Proxy invocations.

Link copied to clipboard
interface Expectation

Handle with the aggregated information of a Proxy invocation. Intended for internal usage only!

Link copied to clipboard

Shared Properties of synchronous and asynchronous functions Proxies.

Link copied to clipboard
sealed class GetOrSet

Argument Container for PropertyProxies.

Link copied to clipboard

Binds a SpyTarget to a invocation.

Link copied to clipboard
Link copied to clipboard

Proxy in order to stub/mock property behaviour.

Link copied to clipboard

Binds a SpyTarget to a invocation.

Link copied to clipboard

Base Proxy definition

Link copied to clipboard
interface ProxyFactory

Entrypoint to instantiate a Proxy.

Link copied to clipboard

Definition of simple setter methods which are equal for Fun- and PropertyProxies.

Link copied to clipboard

Mitigator of the strict assignment policy for multiple SideEffects

Link copied to clipboard
data class Reference(val proxy: KMockContract.Proxy<*, *>, val callIndex: Int)

Reference to a Proxy invocation. Intended for internal usage only!

Link copied to clipboard

Configures non intrusive behaviour for Proxies.

Link copied to clipboard

Configures non intrusive Behaviour for FunProxies.

Link copied to clipboard

Configures non intrusive Behaviour for PropertyProxies.

Link copied to clipboard

Builder for chained SideEffects.

Link copied to clipboard

Synchronous function Proxy in order to stub/mock synchronous function behaviour.

Link copied to clipboard

Provider for Verification.