OOPSLA '04

Program
Technical Program
  Invited Speakers
  Technical Papers
  Onward!
  Panels
  Practitioner Reports
  Tutorials
Workshops
DesignFest
Educators' Symposium
Demonstrations
Posters
Doctoral Symposium
Exhibits
Student Research Comp.
FlashBoF
 
Turing Lecture
 
Social Events
 
Week at a Glance
 
Final Program (1.5M .pdf)

Find in Program
 

Page
Printer-friendly

Basket
view, help

"Pseudo-Classes: Very Simple and Lightweight MockObject-like Classes for Unit-Testing"
Object-Oriented Programming, Systems, Languages and Applications
Home    Program    Housing & Transportation    Registration    Submissions    Wiki    Maps
 


 : Posters on Display : Posters on Display : Posters on Display : Posters on Display at the Welcome Reception

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.