Registry / testing / mockito-bom

mockito-bom

JSON →
library5.23.0javamavenunverified

Bill of Materials (BOM) for Mockito, a popular Java mocking framework for unit tests.

<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-bom</artifactId> <version>5.23.0</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-BOM
M
mockito-bom
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.

Mockito
org.mockito.Mockito

Create and use a mock object with Mockito.

import static org.mockito.Mockito.*; List<String> mockedList = mock(List.class); when(mockedList.get(0)).thenReturn("first"); System.out.println(mockedList.get(0));
Debug
Known issues
gotchaMockito BOM does not include all transitive dependencies; you may need to add them manually.
fix
Ensure you have the required dependencies like byte-buddy and objenesis in your project.
affects: all
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-bom — mvn dependency:get mockito-bom · libregistry