Fake Object

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


EditText of this page (last edited November 29, 2004) or FindPage with title or text search