- Mockito Tutorial
- Mockito - Home
- Mockito - Overview
- Mockito - Environment Setup
- Mockito - First Application
- Mockito - JUnit Integration
- Mockito - Adding Behavior
- Mockito - Verifying Behavior
- Mockito - Expecting Calls
- Mockito - Varying Calls
- Mockito - Exception Handling
- Mockito - Create Mock
- Mockito - Ordered Verification
- Mockito - Callbacks
- Mockito - Spying
- Mockito - Resetting Mock
- Behavior Driven Development
- Mockito - Timeouts
- Mockito Useful Resources
- Mockito - Quick Guide
- Mockito - Useful Resources
- Mockito - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mockito Tutorial
Mockito is a mocking framework, JAVA-based library that is used for effective unit testing of JAVA applications. Mockito is used to mock interfaces so that a dummy functionality can be added to a mock interface that can be used in unit testing. This tutorial should help you learn how to create unit tests with Mockito as well as how to use its APIs in a simple and intuitive way.
Audience
This tutorial is meant for Java developers, from novice to expert level, who would like to improve the quality of their software through unit testing and test-driven development.
After completing this tutorial, you should gain sufficient exposure to Mockito from where you can take yourself to next levels of expertise.
Prerequisites
Readers must have a working knowledge of JAVA programming language in order to make the best of this tutorial. Knowledge of JUnit is an added advantage.