Problems to get spek running with mockito
# spek
d
Problems to get spek running with mockito
r
What's the problem?
d
Mockito cannot mock/spy because final class
Using the lib of nhaarman
Ah cool
r
Mocking final classes in Mockito is opt-in. You have to enable it first.
d
Open in front of the class fixes it
Yes exactly thank you
You don't need to use
open
when you have it enabled.
d
Ok ty
Very helpful
g
And you should understand that mockito and Speak are not related things, they are completely different libraries that don't have interested features, they just both designed for testing