https://kotlinlang.org logo
#mockk
Title
# mockk
s

Samuel Michael

11/20/2019, 9:37 PM
Im new to mockkito so this is probably a dumb question but how do i avoid this?
l

LeoColman

11/21/2019, 1:38 PM
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

rkeazor

11/22/2019, 1:06 AM
To fix you need mockito inline
But yea wrong channel
c

Cody Engel

11/23/2019, 1:45 PM
Another fix is to just use MockK 😉
s

Samuel Michael

11/23/2019, 2:18 PM
Sorry it's for work ;)
7 Views