JUnit 5 Mockito Code Generator downloads statistics
By Sunny Pelletier · JetBrains Marketplace · Testing
The plugin generates boilerplate Mockito JUnit 5 code that usually needs to be added manually to unit tests. This plugin requires your project to use the following...
JUnit 5 Mockito Code Generator has 112,732 recorded downloads on JetBrains Marketplace, ranking #851 of 2,502 tracked listings.
Rating: 2.33 / 5 from 3 ratings
About JUnit 5 Mockito Code Generator
The plugin generates boilerplate Mockito JUnit 5 code that usually needs to be added manually to unit tests.
This plugin requires your project to use the following dependencies:
• JUnit 5 (Jupiter) • Mockito Core • Mockito JUnit Jupiter Plugin • AssertJ (optional)
The plugin auto-generates the following:
• ExtendWith(MockitoExtension.class) annotation on the test class • Mocked fields for each non-static object declared in the test subject • Primary type variables and standard final classes (Instant, ZonedDateTime, UUID, Enums) for tested classes and methods • Field for the test subject with @InjectMocks annotation • Nested classed with @Nested to test each accessible method of the tested class with the fields required in input mocked • static imports for useful mockito functions like when, verify and AssertJ assertThat if it is available
There are two ways to get the plugin to generate your code:
• From inside the test class, hit alt+insert, and then hit Add Mockito JUnit 5 Code • Right click on the test class and select Generate. Then hit Add Mockito JUnit 5 Code
Project is an open source project available on GitHub. Feel free to suggest new features or open merge requests.
Plugin was modified from an existing plugin: https://github.com/przemyslawj/mockito-intellij-plugin and then modified to use JUnit 5 and generate nested class methods.
My other projects
• Magidoc, a GraphQL documentation generator • Mockkator, Intellij plugin to generate boilerplate code for Mockk • Fixkture, an Intellij plugin that generates class instances using random fields • Kotlin stream CSV, an error-resilient CSV parser
Description from the JetBrains Marketplace listing.
- Testing
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Downloads on a linear scale. Placement is projected from downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (5)Similar JetBrains Marketplace Testing plugins
All 20 JUnit 5 Mockito Code Generator alternativesData source
Cumulative download counts come from the public JetBrains Marketplace API. JetBrains reports downloads, not active installs. Ratings are the mean of public votes.
Listing: https://plugins.jetbrains.com/plugin/12833-junit-5-mockito-code-generator. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.