So, you’ve started to embrace the Test-Driven Development approach while doing Java Development. You’re trying to improve your tests, try to write them well and make them readable, and you are now looking for the right mocking framework to assist you. Here are a few hints that might help you choose the right mocking framework :
- If you are an absolute TDD-lover, think that Ruby is awesome in every aspect, that RSpec is THE WAY to go, agree with every single principle of TDD, never write a single line of untested code and believe that sex cannot be good unless you have written a test case to explicit the conditions of success before going to bed, then jMock is the tool for you.
- If you’re a duct-tape programmer, think that Joel Spolsky rocks, and favor pragmatism over purism, then Mockito is the right tool for you. Mockito is very similar to EasyMock but is just newer and simpler to use.
- For everything else, there is Mastercard.
This is hilarious, great post.