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

Package com.episode6.hackit.mockspresso.api

Types

DependencyProvider

interface DependencyProvider

A interface for a class that can provide dependencies for an object. Its get method will never return null.

InjectionConfig

interface InjectionConfig

A configuration interface that defines how we construct real objects.

MockerConfig

interface MockerConfig

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

MockspressoPlugin

interface MockspressoPlugin

An interface that can encapsulate multiple related mockspresso components into a single plugin.

ObjectProvider

interface ObjectProvider<V : Any!>

Similar to javax.inject.Provider but get method is allowed to throw

SpecialObjectMaker

interface SpecialObjectMaker

A class that creates "special" objects, i.e. objects that, by default, should not be simply mocked. An example of this is javax.inject.Provider, where we'd rather return a real instance that provides a mock (or a mapped dependency).