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