mock

inline fun <T> MockspressoBuilder.mock(    qualifier: Annotation? = null,     extraInterfaces: Array<out KClass<out Any>>? = null,     name: String? = null,     spiedInstance: Any? = null,     defaultAnswer: Answer<Any>? = null,     serializable: Boolean = false,     serializableMode: SerializableMode? = null,     verboseLogging: Boolean = false,     invocationListeners: Array<InvocationListener>? = null,     stubOnly: Boolean = false,     @Incubating useConstructor: UseConstructor? = null,     @Incubating outerInstance: Any? = null,     @Incubating lenient: Boolean = false): MockspressoBuilder
inline fun <T> MockspressoBuilder.mock(    qualifier: Annotation? = null,     extraInterfaces: Array<out KClass<out Any>>? = null,     name: String? = null,     spiedInstance: Any? = null,     defaultAnswer: Answer<Any>? = null,     serializable: Boolean = false,     serializableMode: SerializableMode? = null,     verboseLogging: Boolean = false,     invocationListeners: Array<InvocationListener>? = null,     stubOnly: Boolean = false,     @Incubating useConstructor: UseConstructor? = null,     @Incubating outerInstance: Any? = null,     @Incubating lenient: Boolean = false,     noinline stubbing: KStubbing<T>.(T) -> Unit): MockspressoBuilder

Add a mock with the supplied params as a dependency in this mockspresso instance. Mock will be bound with the supplied qualifier annotation. If you need a reference to the mock dependency, consider MockspressoProperties.mock instead.


inline fun <T> MockspressoProperties.mock(    qualifier: Annotation? = null,     extraInterfaces: Array<out KClass<out Any>>? = null,     name: String? = null,     spiedInstance: Any? = null,     defaultAnswer: Answer<Any>? = null,     serializable: Boolean = false,     serializableMode: SerializableMode? = null,     verboseLogging: Boolean = false,     invocationListeners: Array<InvocationListener>? = null,     stubOnly: Boolean = false,     @Incubating useConstructor: UseConstructor? = null,     @Incubating outerInstance: Any? = null,     @Incubating lenient: Boolean = false): Lazy<T>
inline fun <T> MockspressoProperties.mock(    qualifier: Annotation? = null,     extraInterfaces: Array<out KClass<out Any>>? = null,     name: String? = null,     spiedInstance: Any? = null,     defaultAnswer: Answer<Any>? = null,     serializable: Boolean = false,     serializableMode: SerializableMode? = null,     verboseLogging: Boolean = false,     invocationListeners: Array<InvocationListener>? = null,     stubOnly: Boolean = false,     @Incubating useConstructor: UseConstructor? = null,     @Incubating outerInstance: Any? = null,     @Incubating lenient: Boolean = false,     noinline stubbing: KStubbing<T>.(T) -> Unit): Lazy<T>

Add a mock with the supplied params as a dependency in this mockspresso instance. Mock will be bound with the supplied qualifier annotation and will be accessible via the returned lazy.