Program |
 |
|
|
Find in Program |
 |
|
|
Page |
 |
|
|
Basket |
 |
|
view, help
"Pseudo-Classes: Very Simple and Lightweight MockObject-like Classes for Unit-Testing"
|
|
|
|
Pseudo-Classes: Very Simple and Lightweight MockObject-like Classes for Unit-Testing
Geoff Sobering, Berbee Levi Cook, Isthmus Group Steve Anderson, Berbee
A simple alternative to MockObjects is presented. Given an interface, a Pseudo-Class is created implementing all methods such that they immediately fail. A test-specific implementation can then be extended from the Pseudo, over-riding only the methods required by the test. This mechanism is adequate for most tests.
|