Registry / testing / mockito-junit-jupiter

mockito-junit-jupiter

JSON →
library5.23.0javamavenunverified

Provides Mockito integration with JUnit 5 via @ExtendWith and MockitoExtension.

<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-junit-jupiter</artifactId> <version>5.23.0</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-JUNIT-JUPI
M
mockito-junit-jupiter
testingjavav5.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MockitoExtension
org.mockito.junit.jupiter.MockitoExtension

Shows how to use MockitoExtension with JUnit 5.

import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) public class MyTest { @Test void test() { // test logic } }
Debug
Known issues
breakingMockito 5.x requires Java 11+ and has breaking changes from 4.x.
fix
Upgrade to Java 11+ and review Mockito 5 migration notes.
affects: >=5.0.0
Upgrade
Version history
5.23.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mockito-junit-jupiter — mvn dependency:get mockito-junit-jupiter · libregistry