Mock Object
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts.
Read more about Mock Object: Reasons For Use, Technical Details, Use in Test-driven Development, Limitations
Famous quotes containing the words mock and/or object:
“Is there a bridle for this Proteus
That turns and changes like his draughty seas?
Or is there none, most popular of men,
But when they mock us, that we mock again?”
—William Butler Yeats (18651939)
“...if we would be and do all that as a rational being we should desire, we must resolve to govern ourselves; we must seek diversity of interests; dread to be without an object and without mental occupation; and try to balance work for the body and work for the mind.”
—Ellen Henrietta Swallow Richards (18421911)