-
Notifications
You must be signed in to change notification settings - Fork 207
Joshua Selbo edited this page Apr 20, 2026
·
19 revisions
Q: Will this library help mocking closed (non-open) classes?
A: In Kotlin, all classes not explicitly marked with open are final on the JVM. As of Mockito 5.0, the inline mock maker is the default, and this supports mocking final classes. If you are using a version of Mockito older than 5.0, add the org.mockito:mockito-inline artifact to your build to enable the inline mock maker.
Q: Will this library support Mockito 1.x?
A: No. Mockito 2.x is officially released and this library will focus on these versions.