Registry / testing / mockito-inline

mockito-inline

JSON →
library5.2.0javamavenunverified

Mockito preconfigured with inline mock maker for mocking final classes and methods.

<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-inline</artifactId> <version>5.2.0</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-INLINE
M
mockito-inline
testingjavav5.2.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

Creates a mock and stubs a method call.

import static org.mockito.Mockito.*; List mockedList = mock(List.class); when(mockedList.get(0)).thenReturn("first");
Debug
Known issues
gotchaThis artifact is intermediate and will be superseded by automatic usage in a future Mockito version.
fix
Consider using org.mockito:mockito-core with inline mock maker enabled via configuration.
affects: >=5.0.0
Upgrade
Version history
5.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mockito-inline — mvn dependency:get mockito-inline · libregistry