Top Rated Mockito Alternatives

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.
When you want to debug inside, you actually need google help here. Not everything is obvious. Review collected by and hosted on G2.com.
21 out of 22 Total Reviews for Mockito
Overall Review Sentiment for Mockito
Log in to view review sentiment.
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.
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.

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.
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.

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.
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.

- Highly Active Community
- Continuous improvement
- Annotation support
- Available for Multiple Platforms
- Clean and Convenient methods Review collected by and hosted on G2.com.
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.
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.
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.

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.
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.

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.
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.

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.
It doesn't support mocking static and private methods. Review collected by and hosted on G2.com.

Mocking underlaying database or service, Review collected by and hosted on G2.com.
mockMvc.perform(xxx)
.andExpect(status().isOk())
.andExpect(MockMvcResultMatchers.jsonPath("$.[0]")
JsonPth matcher syntax is very hard that I dont like. Review collected by and hosted on G2.com.