mockk

inline fun <T : Any> mockk(    name: String? = null,     relaxed: Boolean = false,     vararg moreInterfaces: KClass<*>,     relaxUnitFun: Boolean = false,     block: T.() -> Unit = {}): T

Builds a new mock for specified class

Parameters

name

mock name

relaxed

allows creation with no specific behaviour

moreInterfaces

additional interfaces for this mockk to implement

relaxUnitFun

allows creation with no specific behaviour for Unit function

block

block to execute after mock is created with mock as a receiver