Mock objects
From CSSEMediaWiki
Revision as of 01:54, 22 September 2010 by MartinvanZijl (Talk | contribs)
Mock objects are objects used when testing an application. They represent a "fake" instance of an object, which may or may not implement the behaviour of a "real" object of the same class.
TODO: Finish...
Fake Objects vs. Mock Objects
Some distinguish "fake objects" from "mock objects". In this nomenclature, a fake object is a fake class which implements the interface of the real class, but has stub implementations.
Mock objects in this setting are instances of the real class, which may be specially constructed for testing purposes.
TODO: Needs to be finished.