DEV Community


Introduction to Mockito: Unit Testing Framework

Shekhar Sahu
・1 min read

Mockito is a Java-based mocking framework most preferred with the Junit testing framework. It internally uses Java Reflection and allows to create dummy objects of service.

Mockito is a very useful tool that simplifies the test case creation by creating mock/dummy object of external dependencies this dummy data will later apply with mocks into code under test.


Discussion (0)