Header banner
Revain logoHome Page
mockito logo

Mockito Review

4

Β·

Very good

Revainrating 4.5 out of 5Β Β 
RatingΒ 
4.5
Development, Web Frameworks

View on AmazonView on Π―M

Description of Mockito

Mocking framework for unit tests in Java.

Reviews

Global ratings 4
  • 5
    2
  • 4
    2
  • 3
    0
  • 2
    0
  • 1
    0

Type of review

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…

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

Revainrating 4 out of 5

Nice tool for writing tests fast - but docs needs improvements

I like that it supports refactorings with annotations, which makes my code more readable and maintainable than before. It is not easy to write custom matchers. You need to understand how to use them effectively and then you can do some really cool things with your test suite. The documentation of this library is quite poor. For example, there are no examples at all! Just read their official tutorial (which isn't very detailed). But you have to know what they mean by "Mockery". Otherwise, it's…

Pros
  • Easy mocking
  • Annotations support
  • Refactoring friendly.
  • Powerful when combined together withe other libraries/frameworks used within project for building complex tests suites such as jUnit Rules or TestNG etc
Cons
  • Not intuitive
  • Documentation could be better

Revainrating 5 out of 5

Very good Android testing framework for kotlind

It's easy to use, it has great documentation (even though sometimes can be outdated), I've never had any problems using this library when developing my android applications with Kotlin! The only thing is that if you are newbie like me or don't have enough experience working/developing java code then maybe some features might look strange at first but after reading its docs everything will become clear :) Great toolkit which helps us write better test cases before writing our actual application…

Pros
  • Documentation , clean syntax compared other tools for Java such as JUnit good framework design.., helpful community forum where users share their issues / suggestions related directly relevant topics within one place in order not having much effort required from user side by just checking existing questions posted there !!! Also very well structured API makes
Cons
  • I don't really have any dislikes about this, everything is just fine

Revainrating 4 out of 5

Test automation tool for Mobile and Desktop applications

I like that it allows me to write code without having any dependencies, which makes my life easier when writing test cases with other frameworks or libraries (like JUnit). It's also easy enough if you want just some basic stubbing of methods/properties - but there is no way out from this dependency hell once we start using more advanced features such as spying etc., so be sure about what exactly do need before jumping into testing your project! We are solving problems related to our mobile…

Pros
  • Being able tto mock objects
  • Simple usage model for beginners.
  • Good documentation available online explaining how different things work in depth at least compared against alternatives eith similar functionalities; not much information can really beat Moxe btw.It works great most times though :)
Cons
  • Not well known yet among developers who aren't familiar wth Java
  • Somewhat complex syntax