org.mockito:mockito-junit-jupiter breaking changes
org.mockito:mockito-junit-jupiter 5.0.0 (January 14, 2023) is its newest release with breaking changes, 7 of them. The first: Removed VarargMatcher. Every breaking API change we have recorded in org.mockito:mockito-junit-jupiter on Maven Central: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.25.0.
Its 5.0.0 release requires Java 11 or later. Java end of life dates.
org.mockito:mockito-junit-jupiter 5.0.0 breaking changes
- Removed
VarargMatcher
The VarargMatcher interface was removed; varargs matching now goes through ArgumentMatcher's type() method. github.com - Behavior changed
any
When passed to a varargs parameter, any() now matches one value; to match any number of values, pass the varargs array type such as any(String[].class). github.com - Behavior changed
ArgumentCaptor.forClass
For varargs, captors for the element type now capture one argument; use a captor for the array type to capture all arguments. github.com - Behavior changed
MockitoHamcrest
MockitoHamcrest matchers passed to a varargs parameter now match a single value; pass the varargs array type to match any number of values. github.com - Default changed
The default mockmaker is now the inline mockmaker instead of the subclass mockmaker. Users who need the subclass mockmaker should add the mockito-subclass artifact. github.com - Configuration changed
Mockito 5 no longer supports Java 8. Users on JDK 8 must stay on Mockito 4. github.com - Signature changed
ArgumentMatcher
A new type() method with a default implementation was added to ArgumentMatcher. Existing source still compiles, but compiled bytecode must be recompiled against Mockito 5. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.