Sunday, June 6, 2010

Mockito vs Easymock

In my project they plan to use EasyMock, I am more in favour of Mockito,but I must be able to explain why...

You might read this  before you start, to get familiar with terminology like Test Double, Test Spy etc.

Mockito presentation here (audio is awful):

remember that the SUT is the Controller, not the Service! You mock the Service to test the Controller. The audience has a real problem with that...

here the presentation slides

Mockito is about INTERACTION testing, not STATE testing.

Here a very good conceptual document:

Some other slides here

here Mockito Javadoc:


No comments: