SpyFactoryConfigurer

Types

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

Properties

Link copied to clipboard

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

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
inline fun <T : Any> SpyFactoryConfigurer.preset(noinline block: MokkerySpyConfigurer.Block<T>)

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

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