Header banner
Revain logoHome Page
Ross Bagby photo
1 Level
744 Review
51 Karma

Review on Mockito by Ross Bagby

Revainrating 5 out of 5

Robust and flexible mocking framework

I like that you can mock any class, including static classes. It's easy to use with annotations. You do not need to write code by hand. The documentation is very good. There are some things which could be improved but it works well enough as it is. Also, there are many other libraries out there so if you find something better or easier than this one then why don't you try it? We have been using this library since we started writing our first test cases of an Android application. This has helped us create more robust applications without worrying about unexpected exceptions being thrown from third party APIs.

img 1 attached to Mockito review by Ross Bagby



Pros
  • Easy mocking
  • Very clean API for tests (it doesn’t feel bloated)
  • Extremely helpful error messages when trying stuff in your IDE before running them manually
Cons
  • All fine