MockFactoryConfigurer

Types

Link copied to clipboard
typealias Block = MockFactoryConfigurer.() -> Unit

Properties

Link copied to clipboard

Returns MokkeryCallHooks associated with this scope. See MokkeryCallHooks for details on hook scoping.

Link copied to clipboard

Sets default MockMode for currently configured MockFactory.

Link copied to clipboard

MokkeryContext of the configured object. Assigning a new value applies it to the configured object.

Functions

Link copied to clipboard

Removes element with key from mokkeryContext.

Link copied to clipboard

Adds context to mokkeryContext.

Link copied to clipboard

Registers a configuration block that is applied to every mock of type T created by the configured MockFactory.

Registers a configuration block that is applied to every mock of given type created by the configured MockFactory. The type must be a class type.