Why do we need mocking frameworks like Easymock , JMock or Mockito?

Posted by Praneeth on Stack Overflow See other posts from Stack Overflow or by Praneeth
Published on 2010-05-04T12:09:30Z Indexed on 2010/05/04 12:18 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

Hi,

We use hand written stubs in our unit tests and I'm exploring the need for a Mock framework like EasyMock or Mockito in our project.

I do not find a compelling reason for switching to Mocking frameworks from hand written stubs.

Can anyone please answer why one would opt for mocking frameworks when they are already doing unit tests using hand written mocks/stubs.

Thanks

© Stack Overflow or respective owner

Related posts about easymock

Related posts about unit-testing