I am trying to do something like `MockkKt.mockk()`...
# mockk
p
I am trying to do something like
MockkKt.mockk()
but the
mockk()
function does not exist 🤔
e
because it's
inline fun <reified T> mockk()
, it can only be called from Kotlin
l
You could build a wrapper that is accessible from Java.
e
there's no way to pass a
<reified T>
type parameter from Java though
l
You would have to pass the type in Koltin, true. Just works for very limited use cases and does not scale. 👍
p
oh dang.. I guess I will have to write this class in Kotlin
o well
¯\_(ツ)_/¯