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:
“I couldnt afford to learn it, said the Mock Turtle with a sigh. I only took the regular course.
What was that? inquired Alice.
Reeling and Writhing, of course, to begin with, the Mock Turtle replied; and then the different branches of ArithmeticAmbition, Distraction, Uglification, and Derision.
I never heard of Uglification, Alice ventured to say.”
—Lewis Carroll [Charles Lutwidge Dodgson] (18321898)
“The great end of all human industry is the attainment of happiness. For this were arts invented, sciences cultivated, laws ordained, and societies modelled, by the most profound wisdom of patriots and legislators. Even the lonely savage, who lies exposed to the inclemency of the elements and the fury of wild beasts, forgets not, for a moment, this grand object of his being.”
—David Hume (17111776)