From: Vincent M. <vm...@oc...> - 2001-08-12 14:49:17
|
Here is a paper presented at XPUnivers on the subject: "Automatically Generating System Mock Objects" URL: http://www.xpuniverse.com/Testing04.pdf Here is the abstract: ABSTRACT In test before code environments [1], writing many quick and efficient unit tests helps projects execute quickly. As the software product under test becomes increasingly complex, it becomes harder to write unit tests to test one particular software object without interacting with the entire system (systemic testing). [5] proposes the MockObject pattern [2, 6] as a technique to replace a real object with a fake test object during testing. We propose a variation, which focuses on the following two goals: (a) Replace external systems for which the unit test developer has no control with mock systems. (b) Generate as much of the mock implementation automatically using Java's reflection Application Interface (API). I have not read it yet. Will do soon though ... -Vincent |