Mocking the un-mockable with Mockito 2.1.0!
https://github.com/mockito/mockito/wiki/What's-new-in-Mockito-2
2.1.0 is a major release with numerous features and changes (2.0.0 version was skipped for specific reasons):
• you can mock final classes in Java and consequently all classes and member functions in Kotlin: http://hadihariri.com/2016/10/04/Mocking-Kotlin-With-Mockito
• full-blown Java 8 support, and Java 9 support (depending on the release date)
• richer stubbing/mocking API
• improving & extracting the continuous delivery automation to a standalone library
#library #testing
>>Click here to continue<<
