Package com.episode6.mockspresso2.api

Types

Link copied to clipboard
interface Dependencies

An accessor into the mockspresso dependency map that is passed to real and dynamic object makers which enables them to inject dependencies into the objects they create.

Link copied to clipboard
fun interface DynamicObjectMaker

A function that gets a chance to create any unregistered dependency needed in a given test.

Link copied to clipboard
interface FallbackObjectMaker

A function that creates any dependencies needed by but not explicitly registered in a given test. Usually implemented by returning mocks.

Link copied to clipboard
fun interface RealObjectMaker

A function that makes real objects (usually via reflection). Should always return a valid value or throw withh a descriptive reason.