Skip navigation.

Using JMock with Test Driven Development

Using JMock with Test Driven Development

Applying Mock objects effectively is a key factor when performing Test Driven Development (TDD). In this article I'll introduce the basics of using JMock, a Mock object framework, in conjunction with Test-Driven Development. To illustrate the technique I will work through a case study, the creation of a cache component by means of test-first development with JMock.

Author: Paolo Caroli
Published: TherServerSide, December 2006