Working with Mockito
This section provides an overview of Mockito. Here is the official Mockito logo:
The following topics are covered in this section:
- Configuring Mockito
- Stubbing method calls
- Throwing exceptions
- Matching method arguments
- Verifying method calls
Download the latest Mockito binary ZIP folder from the following link and add it to the project dependency. The recommended channel for getting Mockito is Maven (or Gradle), or download it directly from the central Maven repository if you need to get the JAR files manually from either http://central.maven.org/maven2/org/mockito/mockito-all/ or http://central.maven.org/maven2/org/mockito/mockito-core/ ...
Get Mockito Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.