Introducing G2.ai, the future of software buying.Try now
Product Avatar Image

Mockito

Show rating breakdown
22 reviews
  • 1 profiles
  • 1 categories
Average star rating
4.6
Serving customers since

All Products & Services

Profile Filters

Profile Name

Star Rating

18
4
0
0
0

Mockito Reviews

Review Filters
Profile Name
Star Rating
18
4
0
0
0
Renuka D.
RD
Renuka D.
Senior Software Engineer at John Deere
03/10/2022
Validated Reviewer
Verified Current User
Review source: G2 invite
Incentivized Review

Mockito - One of the best mocking framework for unit testing

I like the most that it has huge stack overflow community to help you out. we can verify any interactions and stub our method calls. Using mockito in your existing project is the most easy job.
Prathamesh S.
PS
Prathamesh S.
Senior Software Engineer at Boku
06/27/2021
Validated Reviewer
Verified Current User
Review source: G2 invite
Incentivized Review

Mocking framework used to write clean, simple and effective test cases.

One of the best frameworks out there to create Mock objects to enable testing. Decouples the testing logic from the implementation, making it easier to write clean test cases. Ability to easily mock almost any object as per the requirements. No need to write mock objects on your own. Easiest solution out of the box to support such requirements. One of the biggest challenges with any testing/mocking framework is the support for refactoring. In Mockito renaming interface method names or reordering parameters will not break the test code as mocks are created at runtime. Those who work with Junits are well familiar that returning values is a very difficult or tedious task. Mockito however supports return values out of the box. Another blessing is the support for exceptions and ability to easily handle them. Also supports check on order of method calls. As we get more and more advanced in terms of Java, use of annotations is a great benefit to get rid of the boiler plate code. Mockito supports creating mocks using annotation.
Olga K.
OK
Olga K.
Full Stack Engineer at Dronebase
02/18/2021
Validated Reviewer
Verified Current User
Review source: G2 invite
Incentivized Review

Perfect tool for testing framework

It's possible to test a lot fo conditions and it's easy to read. Just need to know what's happening inside. Once you learn it, it's clear.

About

Contact

HQ Location:
N/A

Social

@mockito

What is Mockito?

Mockito is a popular open-source testing framework for Java, designed to facilitate the creation of mock objects for unit testing. By enabling developers to emulate the behavior of complex, real objects, Mockito helps streamline the testing process, allowing for more efficient and effective testing strategies. Its simple API makes it easy to use, even for developers who are new to mocking. Mockito's capabilities include verifying object interactions, stubbing method calls, and mocking interfaces, promoting better code coverage and bug detection.

Details