I'm trying to write some tests for my Kotlin code,...
# getting-started
b
I'm trying to write some tests for my Kotlin code, but I'm running into the problem that my Kotlin classes are final when I try to mock/stub them. I'm pretty sure I'm missing the way to go here without making all my classes open, so I'm wondering how do you mock/stub your classes? Btw, I'm using Spock, I haven't resolved to using PowerMockito yet.