Wednesday, November 16, 2011

Mockito...effective testing



If you ask me,what is your framework of choice when it comes to unit testing,  the answer would be Mockito.  I have been using it  extensively  in the past 1 1/2 year and tried to 'introduce' it (sometimes under the hood) in some projects.

I think it is simple enough to use (simpler than JMock) and to be integrated, so it acts as a productivity booster - letting you focus on the actual tests and define complex scenarios rather than spending your time - creating the text context mechanics and wiring different frameworks.

There is a great series of posts from Holger Staudacher  @ the Eclipse Source Blogs section - that I highly recommend to take a look at! Part1, Part2, Part3, Part4, Part 5 (maybe more to come).


No comments:

Post a Comment