mockspresso-api / com.episode6.hackit.mockspresso.api / MockerConfig

MockerConfig

interface MockerConfig

A config interface used by mockspresso to handle to mocking of objects using any mocker that supports annotations.

Types

FieldPreparer

interface FieldPreparer

Class that prepares the mocks on an object (usually an instance of the current test class, but can be any generic pojo with annotated fields)

MockMaker

interface MockMaker

Class that creates mocks, used for automatically generating mocks that are not part of the dependency map

Functions

provideFieldPreparer

abstract fun provideFieldPreparer(): MockerConfig.FieldPreparer

provideMockAnnotations

abstract fun provideMockAnnotations(): MutableList<Class<out Annotation!>!>

provideMockMaker

abstract fun provideMockMaker(): MockerConfig.MockMaker