This document discusses scaffolding tests using the JMock library. It provides an overview of JMock features for creating mock objects and defining expectations in tests. Specific patterns are demonstrated, such as expecting a sequence of method invocations and using anonymous expectations blocks. The document also discusses test doubles and how to design code for mockability. Examples include testing a scheduler class in isolation using stubs and mocks.
Related topics: