autoFactory
inline fun <T> MockspressoBuilder.autoFactory(qualifier: Annotation? = null): MockspressoBuilder
Content copied to clipboard
inline fun <T> MockspressoProperties.autoFactory(qualifier: Annotation? = null): Lazy<T>
Content copied to clipboard
Mark type T (with optional qualifier) as a Factory object which is also accessible via the returned lazy. The object will be mocked and each method will return a dependency from the underlying Mockspresso instance.