Fake Object

last modified: November 29, 2004

A class with methods that return a fixed value or values that can either be hardcoded or set programmatically. (from DaveAstels's TestDrivenDevelopmentaPracticalGuide)

Also mentioned in WorkingEffectivelyWithLegacyCode by MichaelFeathers.

Contrast: MockObject


CategoryTesting


Loading...