In object oriented programming mock objects are simulated objects that mimic the behaviour of real objects in a controlled way. Similar to a crash test dummy in car design.
You might use a mock object when a real object is impracticle or impossible to incorporate in a unit test or to test behaviour which is new.
Mock objects are used in test driven development.
Wednesday, 3 June 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment