Friday, April 1, 2011

Creating mock objects for Test Driven Development

EasyMock - EasyMock provides Mock Objects for interfaces (and objects through the class extension) by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development.

Mockito - Mockito library enables mocks creation, verification and stubbing.

JMock- JMock is a library that supports test-driven development of Java code with mock objects.

No comments:

Post a Comment