DEV Community

loading...

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.

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

Discussion (0)