btw I think <#C1FLMRTJA|kotlin> should have very s...
# announcements
o
btw I think #kotlin should have very strong focus on testing tools, so that it's easy for Java dev to try it and benefit from having DSLs for testing. So it should be really Kotlin frameworks, no such stuff like "final" issue(kotlin really can allow to run tests with special option, not plugin), e.t.c. up to the approach when you counting clicks till writing first tests for existing Java/Maven/gradle project
d
It's possible to mock
final
classes https://antonioleiva.com/mockito-2-kotlin/
o
I didnt say its im-possible. Ive get through all this mechanisms in Mockito and PowerMock
d
what is your main concern, having a relatively easy way to do with Mockito?
e
i personally find mocks to be code smells. i prefer dependency injection with testing modules to provide any stubs i need.
o
This approach works only if you can retransform classes in JVM, so works on last JVMs and only if JDK installed. Which is may be fine. Stills looks more like a workaround
Great that you dont use mocks :-) i dont use test modules
n
Kotlin Test (https://github.com/kotlintest/kotlintest) is an excellent option for Kotlin testing (does more than Unit Testing).