Skip to content

Instantly share code, notes, and snippets.

@sukyology

sukyology/block1.kt Secret

Created Jan 17, 2021
Embed
What would you like to do?
open class OpenClass
class FinalClass
abstract class AbstractClass
interface Interface
class ExampleTest {
@Test
fun `mock instance class`() {
val o: OpenClass = mockk()
val f: FinalClass = mockk()
val a: AbstractClass = mockk()
val i: Interface = mockk()
println(o::class)
println(f::class)
println(a::class)
println(i::class)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment