[ET] - Endo-Testing
By: Tim Mackinnon, Steve Freeman, Philip Craig
This paper, presented at XP 2000 in Sardinia, describes the use of Mock Objects (page X) to facilitate testing of the behavior of an object by monitoring its behavior while it is executing.
Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. They allow unit tests to be written for everything, simplify test structure, and avoid polluting domain code with testing infrastructure.
Further Reading
http://www.connextra.com/aboutUs/mockobjects.pdf.Copyright © 2003-2008 Gerard Meszaros all rights reserved