---
title: "org.mockito:mockito-junit-jupiter 5.0.0 Breaking Changes"
description: "What each org.mockito:mockito-junit-jupiter release removed, renamed or changed: 7 breaking changes in 1 version on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/org.mockito:mockito-junit-jupiter
last_updated: 2026-12-04
---

# 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

Latest version `5.25.0`. 

Its 5.0.0 release requires [Java 11](https://since.dev/calendar/eclipse-temurin/11.md) or later. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

## org.mockito:mockito-junit-jupiter 5.0.0 breaking changes

org.mockito:mockito-junit-jupiter 5.0.0, released January 14, 2023: 7 breaking changes.

- **Removed** `VarargMatcher`  

The VarargMatcher interface was removed; varargs matching now goes through ArgumentMatcher's type() method. [github.com](https://github.com/mockito/mockito/commit/064fe9028993a11ccf0ae12b5975b96baffcf305)
- **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](https://github.com/mockito/mockito/commit/064fe9028993a11ccf0ae12b5975b96baffcf305)
- **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](https://github.com/mockito/mockito/releases/tag/v5.0.0)
- **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](https://github.com/mockito/mockito/commit/064fe9028993a11ccf0ae12b5975b96baffcf305)
- **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](https://github.com/mockito/mockito/releases/tag/v5.0.0)
- **Configuration changed**  

Mockito 5 no longer supports Java 8. Users on JDK 8 must stay on Mockito 4. [github.com](https://github.com/mockito/mockito/releases/tag/v5.0.0)
- **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](https://github.com/mockito/mockito/releases/tag/v5.0.0)

## Related packages

- [org.mockito:mockito-core](https://since.dev/packages/maven/org.mockito:mockito-core.md)
- [org.mockito:mockito-inline](https://since.dev/packages/maven/org.mockito:mockito-inline.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
