Dahlia Bock

Archive for April 21st, 2009

An interesting blog post about Mockito (and other mocking frameworks)

with 3 comments

I’ve recently joined the mockito google group and this link was posted recently.

http://rrees.wordpress.com/2009/04/12/three-little-mockers

It mainly compares Mockito and JMock and how the author thinks that Mockito encourages developers to be lazy and allows classes to grow fatter in terms of functionality and collaborators. The author also thinks that Mockito encourages Test Driven *Development, while JMock encourages Test Driven *Design. Don’t forget to read the comments too, that’s where the drama’s at.

What do you think? I haven’t used JMock, so I can’t speak myself. But to those who have, does JMock compel better code design because it increases the amount of noise in the code? Do you think there’s a difference between Test Driven *Development and *Design?

Another interesting note is that there was a ThoughtWorks team in the same location as the author, and they were pushing for Mockito :)

Written by Dahlia Bock

April 21, 2009 at 2:48 am