Mockito is a mocking framework that lets you write tests with a clean and simple API.
Ranked in these QuestionsQuestion Ranking
Pro Verification and exceptions are clean and flexible
Users can easily track failed verifications in tests and these exceptions lead the user to the actual point of interaction in the code. The stack trace will always be clean and verification can be flexible in the order it is presented ensuring the most important verifications can be shown first.
Pro Simple, clean API
Mockito focuses on having a very simple and clean API to allow ease of use and a simple way to get started. It allows users to use the same techniques when mocking classes or interfaces as there is only one kind of mock and one way of creating mocks.
Con No static and final method support
Although Mockito is a mature framework it lacks the ability to mock static or private methods. This is because Mockito prefers object orientation and dependency injection over static, procedural code that is hard to understand & change.