Mockitools is a plugin for IntelliJ-based IDEs that provides framework integration for Mockito, one of the (if not the) most popular mocking frameworks for unit testing in Java.
It provides features in the following areas of Mockito:
- Mock creation
- Stubbing
- Mockito verifications
- Argument matching and capturing
- Version migration aids
- Framework integration
In the Intellij Inspections settings, all inspections are available under the Java / Mockito folder.
There is a handful of inspections available to help migrate users from Mockito 2.x/3.x to 4.x.
Since Mockito 5 has already been available for a while, these inspection are disabled by default. However, if you are still on Mockito 2.x or 3.x, you can enable them under Java > Mockito > Migration aids (v4) in the Inspection settings.
See the list of those inspections in Mockito v4 migration aids.
This project and the plugin logo are licensed under the terms of Apache Licence Version 2.0.
Thank you to my good friend, Thubakabra, for creating the logo.
Plugin based on the IntelliJ Platform Plugin Template.