autoFactoriesByAnnotation

inline fun <A : Annotation> MockspressoBuilder.autoFactoriesByAnnotation(): MockspressoBuilder

Marks any class encountered with the given A annotation as a Factory object. The object will be mocked and each method will return a dependency from the underlying Mockspresso instance.