The road so far….

January 9, 2011

using EasyMock or Mockito

Filed under: Agile, java — Rahul Sharma @ 8:36 pm

I have been using EasyMock for most of time but recently I worked with a few people who were pretty much inclined to use Mockito. Not intending to use two frameworks for the same purpose in the same project I adopted Mockito.  So for the last couple of months I have been using Mockito and here is my comparative analysis of the  two.

The  people with whom I have work cite reasons of test readability for using Mockitio but I have a different opinion on the same.  Suppose we have the following code that we intend to test : (more…)