mockk
inline fun <T : Any> mockk( name: String? = null, relaxed: Boolean = false, vararg moreInterfaces: KClass<*>, relaxUnitFun: Boolean = false, block: T.() -> Unit = {}): T
Content copied to clipboard
Builds a new mock for specified class
Parameters
name
mock name
relaxed
allows creation with no specific behaviour
more Interfaces
additional interfaces for this mockk to implement
relax Unit Fun
allows creation with no specific behaviour for Unit function
block
block to execute after mock is created with mock as a receiver