EasyMock vs Mockito

Just wanted to share my personal opinion on these 2 great mocking frameworks for Java. After years of experience with both of them…

…I say Mockito is better.

Mainly because it requires less code to do the same.

I don’t want to provide a detailed evidence. It’s just my personal preference which is a result of my professional experience with both frameworks.

One thing worth to mention: EasyMock was the first mocking framework for Java I started to use and I do not replace things without a reason. So I was likely not to switch to Mockito at the beginning. Yet it convinced me to do so. 🙂

Advertisements

About krzysztoftomaszewski

I've got M.Sc. in software engineering. I graduated in 2005 at Institute of Computer Science, Warsaw University of Technology, Faculty of Electronics and Information Technology. I'm working on computer software design and engineering continuously since 2004.
This entry was posted in Java and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s