mockk Static
inline fun mockkStatic(vararg classes: KClass<*>): <Error class: unknown class>
Content copied to clipboard
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>
Content copied to clipboard
Builds a static mock. Old static mocks of same classes are cancelled before.
Builds a static mock and unmocks it after the block has been executed.
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)
Content copied to clipboard
inline fun mockkStatic(vararg functions: KProperty<*>, block: () -> Unit)
Content copied to clipboard
Builds a static mock and unmocks it after the block has been executed.