Introducing G2.ai, the future of software buying.Try now
<strong>Your customers</strong> are talking about <strong>you</strong>.
Sponsored
Your customers are talking about you.
Join the Conversation
Product Avatar Image
Mockito

By Mockito

Re-claim Profile

Re-claim your company’s G2 profile

This profile hasn’t been active for over a year.
If you work at Mockito, you can re-claim it to keep your company’s information up to date and make the most of your G2 presence.

    Once approved, you can:

  • Update your company and product details

  • Boost your brand's visibility on G2, search and LLMs

  • Access insights on visitors and competitors

  • Respond to customer reviews

  • We’ll verify your work email before granting access.

Re-claim
4.6 out of 5 stars
3 star
0%
2 star
0%
1 star
0%

How would you rate your experience with Mockito?

<strong>Your customers</strong> are talking about <strong>you</strong>.
Sponsored
Your customers are talking about you.
Join the Conversation
It's been two months since this profile received a new review
Leave a Review

Mockito Reviews & Product Details

Product Avatar Image

Have you used Mockito before?

Answer a few questions to help the Mockito community

Mockito Reviews (22)

Reviews

Mockito Reviews (22)

4.6
22 reviews

Search reviews
Filter Reviews
Clear Results
G2 reviews are authentic and verified.
Verified User in Information Technology and Services
UI
Enterprise (> 1000 emp.)
"Mockito - One of the best mocking framework for unit testing"
What do you like best about Mockito?

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. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

I am not able to think of any dislike though i would say the more you explore the framework the more you will love working with mockito. Review collected by and hosted on G2.com.

Prathamesh S.
PS
Software Engineer
Mid-Market (51-1000 emp.)
"Mocking framework used to write clean, simple and effective test cases."
What do you like best about Mockito?

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. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

Though not a steep one but there is a learning curve for sure. You need some kind of background in writing test cases to understand the usage and effectiveness of Mockito.

Mockito doesn't support mocking of local variables, static methods and private methods. Managing mock objects within abstract test cases has been very difficult for me. Review collected by and hosted on G2.com.

Subhodeep D.
SD
Application Developer
Enterprise (> 1000 emp.)
"Ease of writing test cases and the ability to get test coverage to almost 100%"
What do you like best about Mockito?

Ability of coverage of REST web services. This really helps if there is a complicated scenario in which multiple negative cases might fall into action. It simply makes the process much easier to debug. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

There is nothing I dislike about Mockito in particular. The use of the annotations driven architecture in Spring Boot makes the process of writing test cases much more easier. Review collected by and hosted on G2.com.

shrawan a.
SA
Software Engineer
Mid-Market (51-1000 emp.)
"The Mockito, an amazing library for for Unit Testing."
What do you like best about Mockito?

- Highly Active Community

- Continuous improvement

- Annotation support

- Available for Multiple Platforms

- Clean and Convenient methods Review collected by and hosted on G2.com.

What do you dislike about Mockito?

The only deal-breaker for me would be:

- Proxy-based (No bytecode manipulation)

( But it does seem like its integration with PowerMock still makes it a top choice ) Review collected by and hosted on G2.com.

Olga K.
OK
Full Stack Software Engineer
Mid-Market (51-1000 emp.)
"Perfect tool for testing framework"
What do you like best about Mockito?

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. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

When you want to debug inside, you actually need google help here. Not everything is obvious. Review collected by and hosted on G2.com.

Verified User in Computer Software
UC
Mid-Market (51-1000 emp.)
"Best testing framework, I really enjoy using this framework"
What do you like best about Mockito?

1. Very easy to use.

2. Very less configuration is needed.

3. Provide both annotation as well as class based configuration.

4. I can fully mock an object as well as partially mock an object that is very helpful when I just need to test some methods of a class which I created and leave the other methods which I do not case about.

5. Method name are fluent based so Its very descriptive for others when they read the test cases. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

Not having support of mocking static methods.

Even when static methods are utility methods and that should not require mocking but sometime we get a usecase where it is very hard to actually call static method and we need to mock. Review collected by and hosted on G2.com.

Pranav C.
PC
Enterprise (> 1000 emp.)
Business partner of the seller or seller's competitor, not included in G2 scores.
"Simple, intuitive and a must have for unit testing in spring environment"
What do you like best about Mockito?

It's easy to learn, easy to interpret, and minimal code needs to be written to setup a mock in mockito. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

Don't see any downsides, it's been perfect tool for the requirements I've faced in my experience. Review collected by and hosted on G2.com.

Dhruva A.
DA
Software Engineer
Small-Business (50 or fewer emp.)
"Mokito lets you write beautiful tests with a clean & simple API"
What do you like best about Mockito?

Test code can be decoupled from the implementation.

Creation of the mocks through annotations.

Its ability to integrate easily with the existing projects makes it faster and easy to use. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

So far it has been so good for me. But I am sure any downsides will be greatly outnumbered by the features it has. Review collected by and hosted on G2.com.

Apurva R.
AR
Associate Consultant
Enterprise (> 1000 emp.)
"Unit Testing made easy by Mockito"
What do you like best about Mockito?

Mockito offers best platform for easy usage. I can easily mock an object if I need to test some methods of a class and not the whole. It ease to use made my coding life easy. Review collected by and hosted on G2.com.

What do you dislike about Mockito?

It doesn't support mocking static and private methods. Review collected by and hosted on G2.com.

Sahit B.
SB
Software engineer
Small-Business (50 or fewer emp.)
Business partner of the seller or seller's competitor, not included in G2 scores.
"Mockito is very useful, I love writing tests with mockito"
What do you like best about Mockito?

I can write very readable and maintained code with mockito Review collected by and hosted on G2.com.

What do you dislike about Mockito?

Since I use mockito I didn't notice something I don't like Review collected by and hosted on G2.com.

Pricing

Pricing details for this product isn’t currently available. Visit the vendor’s website to learn more.

Product Avatar Image
Mockito
View Alternatives