DEV Community

Shekhar Sahu
Shekhar Sahu

Posted on

Introduction to Mockito: Unit Testing Framework

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.

Link: https://blog.joshsoftware.com/2020/05/27/introduction-to-mockito-unit-testing-framework/

Top comments (0)