« How Wrong I Was! | Main | The difference between knowing and understanding »

February 22, 2005

Java Mock Object Framework Comparison

I gave a short presentation at the QJUG last night on a number of current frameworks for generating mock objects in Java. I chose the three "big names" in the mocking space (EasyMock, DynaMock, JMock), plus a quaint fourth in MockCreator, and MockRunner for a bit of variety.

Here is a HTML version of my slides (not that they're really that informative without the accompanying witty repartee available only to those present), along with all the source code presented.

I've left obtaining the necessary JARs to compile/test the code as an exercise for the reader :-)

Anyone who'd like to solve the problem I had getting MockCreator blocks to work properly - I'd be most appreciative.

Posted by Andy Marks at February 22, 2005 03:51 PM

Comments

Nice work! In the conclusion I think you should not reccommend DynaMock -- it is not supported and has an inflexible and incomplete API.

Posted by: Nat Pryce at February 23, 2005 12:02 AM

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?