Why should I use mock objects (Java)? Do all mocking frameworks serve the same purpose?

Posted by Mehmet Yesin on Stack Overflow See other posts from Stack Overflow or by Mehmet Yesin
Published on 2011-06-21T13:38:25Z Indexed on 2011/06/21 16:22 UTC
Read the original article Hit count: 240

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about unit-testing