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:
“And how many hours a day did you do lessons? said Alice, in a hurry to change the subject.
Ten hours the first day, said the Mock Turtle: nine the next, and so on.
What a curious plan! exclaimed Alice.
Thats the reason theyre called lessons, the Gryphon remarked: because they lessen from day to day.”
—Lewis Carroll [Charles Lutwidge Dodgson] (18321898)
“All the followers of science are fully persuaded that the processes of investigation, if only pushed far enough, will give one certain solution to each question to which they can be applied.... This great law is embodied in the conception of truth and reality. The opinion which is fated to be ultimately agreed to by all who investigate is what we mean by the truth, and the object represented in this opinion is the real.”
—Charles Sanders Peirce (18391914)