Why should I use mock objects (Java)? Do all mocking frameworks serve the same purpose?
- by Mehmet Yesin
I'm preparing a presentation and I need to get a better understanding of what mocking is, what is the purpose of using it, what are the common situations that I should use mock objects? I found out that there are a bunch of mocking frameworks out there. Do they all do the same thing or do I use a specific framework for specific testing purpose? What are the differences between these frameworks? Which one would you recommend for testing Java?
here are some stuff that I found:
1.MockingToolkitComparisonMatrix which seems biased.
2.What are mock objects in Java? This is a year old. I thought there might be some better answer today.
Thank you.