Friday, February 11, 2011

Unitils mocks: easy and cool

I am not a fan of EasyMock, I think mockito is far superior.

Yet I found Unitils mocks - which are based on EasyMock - quite easy to use.

Here http://javatoolsforweblogic.googlecode.com/files/TestUnitils.zip a sample Eclipse project to illustrate the mocks - it's basically takes from Unitils tutorial http://unitils.org/tutorial.html


The only hassle is putting together all the required jars (adjust .classpath file)

No comments: