Sunday, August 31, 2008

EasyMock example

We're starting to look at mock object frameworks at my current consulting gig, so I thought I'd put together a small example of how to use EasyMock.

Pretty simple but gets the point across on how to get started with EasyMock. Mockito examples are forthcoming.


  1. Are you going to be doing any examples of JMock or JMockit?

  2. Sure, if there is interest in it. I'm using EasyMock at my consulting gig, so that's why I started out with the EasyMock example. Mockito was interesting to me, so I converted the EasyMock version over to Mockito for giggles.

  3. Thanks for sharing!

    abhiram astrology center. Best Astrologer In brampton