Mock Object

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.
    “That’s the reason they’re called lessons,” the Gryphon remarked: “because they lessen from day to day.”
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)

    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. That is the way I would explain reality.
    Charles Sanders Peirce (1839–1914)