[UTwHCM] - Unit Testing With Hand Crafted Mocks
By: Sven Gorts
This paper summarizes and names a number of idioms related to Hand-Built Test Doubles (see Configurable Test Double on page X), specfically Test Stubs (page X) and Mock Objects (page X). Sven Gorts writes:
Many of the unit tests I wrote over the last couple of years use mock objects in order to test the behavior of a component in isolation of the rest of the system. So far, despite the availability of various mocking frameworks, each of the mock classes I've used has been hand written. In this article I do some retrospection and try to wrap up the mocking idioms I've found most usefull.
Copyright © 2003-2008 Gerard Meszaros all rights reserved