Package com.episode6.mockspresso2.plugins.mockk
Functions
Link copied to clipboard
fun <Error class: unknown class>.fallbackWithMockk(relaxed: Boolean = true, relaxedUnitFun: Boolean = true): <Error class: unknown class>
Content copied to clipboard
Use mockk to generate fallback objects for dependencies that are not present in the mockspresso instance
Link copied to clipboard
inline fun <T> <Error class: unknown class>.mockk( qualifier: Annotation? = null, name: String? = null, relaxed: Boolean = true, vararg moreInterfaces: KClass<*>, relaxUnitFun: Boolean = true, noinline block: T.() -> Unit = {}): <Error class: unknown class>
Content copied to clipboard
Add a mockk 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.mockk instead.
inline fun <T> <Error class: unknown class>.mockk( qualifier: Annotation? = null, name: String? = null, relaxed: Boolean = false, vararg moreInterfaces: KClass<*>, relaxUnitFun: Boolean = false, noinline block: T.() -> Unit = {}): Lazy<T>
Content copied to clipboard
Add a mockk with the supplied params as a dependency in this mockspresso instance. Mockk will be bound with the supplied qualifier annotation and will be accessible via the returned lazy.