Im new to mockkito so this is probably a dumb ques...
# mockk
s
Im new to mockkito so this is probably a dumb question but how do i avoid this?
l
Samuel, I believe you're in the wrong channel. This channel is about the Mockk library (https://github.com/mockk/mockk)
It's not about Mockito
Your question probably fits #test better, they might be able to assist you with this issues better
However, seeing your stacktrace, perhaps I can give you some insight: The class is not mockable because it's final. You either open it (
open class XX
) or don't try to mock it
Mockk (the library I linked above) supports mocking final classes.
r
To fix you need mockito inline
But yea wrong channel
c
Another fix is to just use MockK 😉
s
Sorry it's for work ;)