-
Task
-
Resolution: Done
-
Normal
-
None
-
None
In Quarkus 3.20.1, the quarkus-junit5-mockito extension was non-functional due to an incompatibility between the versions of JUnit and Mockito. Mockito required JUnit 5.11 or later, but the platform was pinned to JUnit 5.10, which caused runtime failures in extension usage.
To resolve the issue and align library versions, the platform now uses JUnit 5.12.1. This update restores functionality for the Mockito JUnit extension. While the update introduces minor changes in how JUnit handles class hierarchies and ExtensionContext, impact on user tests is expected to be minimal. Camel Quarkus test validation against the update showed no regressions.
A workaround is available for customers who experience compatibility issues: explicitly downgrade JUnit in their project configuration.
Tracking issue: https://github.com/quarkusio/quarkus/issues/46858