Package com.episode6.mockspresso2.plugins.mockito.factories.reflect
Functions
Link copied to clipboard
Returns a Factory object for the given factoryKey. The object will be mocked and each method will return a dependency from the underlying Mockspresso instance.
Link copied to clipboard
fun Dependencies.mockitoAutoFactoryAnswer(factoryKey: DependencyKey<*>): Answer<Any>
Content copied to clipboard
Returns a mockito default Answer for use in a mock of the given factoryKey. The answer will resolve the return type of the called method at runtime and return a dependency from the mockspresso graph.