Mockito - effective testing

Share on:

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 taking a look at! Part1, Part2, Part3, Part4, Part 5 (maybe more to come).