Registry / testing / mockito-all

mockito-all

JSON →
library1.10.19javamavenunverified

A mocking framework for unit tests in Java that allows creating mock objects and defining their behavior.

<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.10.19</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-ALL
M
mockito-all
testingjavav1.10.19
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 a mock object and stub a method call.

import static org.mockito.Mockito.*; import java.util.List; public class ExampleTest { @Test public void test() { List<String> mockedList = mock(List.class); when(mockedList.get(0)).thenReturn("first"); System.out.println(mockedList.get(0)); } }
Debug
Known issues
breakingmockito-all is deprecated; use mockito-core instead.
fix
Replace dependency with org.mockito:mockito-core.
affects: >=2.0.0
Upgrade
Version history
1.10.19latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
mockito-all — mvn dependency:get mockito-all · libregistry