Package-level declarations
Functions
Link copied to clipboard
fun MockspressoBuilder.fallbackWithMockk(relaxed: Boolean = true, relaxedUnitFun: Boolean = true): MockspressoBuilder
Use mockk to generate fallback objects for dependencies that are not present in the mockspresso instance
Link copied to clipboard
inline fun <T> MockspressoBuilder.mockk(qualifier: Annotation? = null, name: String? = null, relaxed: Boolean = true, vararg moreInterfaces: KClass<*>, relaxUnitFun: Boolean = true, noinline block: T.() -> Unit = {}): MockspressoBuilder
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> MockspressoProperties.mockk(qualifier: Annotation? = null, name: String? = null, relaxed: Boolean = false, vararg moreInterfaces: KClass<*>, relaxUnitFun: Boolean = false, noinline block: T.() -> Unit = {}): Lazy<T>
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.
Link copied to clipboard
inline fun <BIND, IMPL : BIND> MockspressoProperties.spykImplOf(qualifier: Annotation? = null, name: String? = null, vararg moreInterfaces: KClass<*>, recordPrivateCalls: Boolean = false, noinline block: IMPL.() -> Unit = {}): Lazy<IMPL>