The top minds of Kotlin community answered question:
"How do you mock final classes"
with
"Legacy PowerMock usage or pull the class into an interface"
wtf. 😢 😢 😢
@elizarov I summon you to learn about this amazing project because I saw you nodding to that dumb answer! 😄
👍 3
e
elizarov
10/09/2018, 1:48 PM
I’ve heard of mockk, but I’m not a mocking person myself. My whole life I’ve structured architecture of my projects in such a way that I never needed to mock a single class or interface, so what do I know?