When comparing Mockito vs EasyMock, the Slant community recommends Mockito for most people. In the question“What are the best mock frameworks for Java?” Mockito is ranked 1st while EasyMock is ranked 3rd. The most important reason people chose Mockito is:
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.
Ranked in these QuestionsQuestion Ranking
Pros
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.
Pro Large community support

Pro PowerMock extensions solve some difficult edge cases
PowerMock extensions to Mockito allow for testing static methods, etc.
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 Ease of use
Pro Great resources for beginners
A great step-by-step guide for installation and first use is provided by the EasyMock team. In addition there is the full API available for browsing and understanding the framework more.
Pro Flexible
EasyMock allows for developers to be able to switch between nice, normal, and strict mocking controls.
Pro Full interaction control
EasyMock requires the user to put down all interactions in code, allowing full control over all interactions that will occur between EasyMock and the code. Other frameworks take care of these interactions which can lead to test scenarios out of the developers control.
Cons
Con Small community
Although EasyMock has great resources including their User guide and Javadocs, there is a need for a dedicated community that it seems to not have. Other frameworks have more support and community around them resulting in more developers choosing other frameworks.
Alternative Products
