MockKStaticScope

class MockKStaticScope(val staticTypes: KClass<*>) : MockKUnmockKScope

Scope for static mockks. Part of DSL

Constructors

Link copied to clipboard
constructor(vararg staticTypes: KClass<*>)

Properties

Link copied to clipboard
val staticTypes: Array<out KClass<*>>

Functions

Link copied to clipboard
inline fun <T : Any> and(): MockKStaticScope
Link copied to clipboard
open override fun clear(answers: Boolean, recordedCalls: Boolean, childMocks: Boolean, verificationMarks: Boolean, exclusionRules: Boolean)
Link copied to clipboard
fun mock()
Link copied to clipboard
Link copied to clipboard
fun unmock()
Link copied to clipboard
inline fun <T> MockKUnmockKScope.use(block: () -> T): T

Wraps block of code for safe resource allocation and deallocation. Part of DSL