
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.