Package com.episode6.mockspresso2

Types

Link copied to clipboard
class CircularDependencyError(key: <Error class: unknown class><out <Error class: unknown class>>) : AssertionError
Link copied to clipboard
class DependencyAlreadyMappedError(key: <Error class: unknown class><out <Error class: unknown class>>) : AssertionError
Link copied to clipboard
class InternalMockspressoError(message: String) : AssertionError
Link copied to clipboard
class InvalidTypeReturnedFromMakerError(message: String) : AssertionError
Link copied to clipboard
class MockspressoAlreadyInitializedError : AssertionError
Link copied to clipboard
class MockspressoAlreadyTornDownError : AssertionError
Link copied to clipboard
class NoFallbackMakerProvidedError(key: <Error class: unknown class><out <Error class: unknown class>>) : AssertionError

Functions

Link copied to clipboard
fun defaultFallbackObjectMaker(): <Error class: unknown class>

The default fallback object maker is non-functional and throws exceptions if any dependencies required by real object are not explicitly added to the mockspresso instance.

Link copied to clipboard
fun defaultRealObjectMaker(): <Error class: unknown class>

The default real object maker uses the default constructor to create objects

Link copied to clipboard
fun MockspressoBuilder(): <Error class: unknown class>

Root entry point to create a new MockspressoBuilder