mockkStatic

inline fun mockkStatic(vararg classes: KClass<*>): <Error class: unknown class>

Builds a static mock. Any mocks of this exact class are cancelled before it's mocked


inline fun mockkStatic(vararg classes: String): <Error class: unknown class>

Builds a static mock. Old static mocks of same classes are cancelled before.


inline fun mockkStatic(vararg classes: KClass<*>, block: () -> Unit)
inline fun mockkStatic(vararg classes: String, block: () -> Unit)

Builds a static mock and unmocks it after the block has been executed.

fun mockkStatic(vararg functions: KFunction<*>)
fun mockkStatic(vararg functions: KProperty<*>)

Builds a static mock. Any mocks of this function's declaring class are cancelled before it's mocked


inline fun mockkStatic(vararg functions: KFunction<*>, block: () -> Unit)
inline fun mockkStatic(vararg functions: KProperty<*>, block: () -> Unit)

Builds a static mock and unmocks it after the block has been executed.