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:

    “Sometimes we see a cloud that’s dragonish,
    A vapor sometimes like a bear or lion,
    A towered citadel, a pendant rock,
    A forked mountain, or blue promontory
    With trees upon ‘t that nod unto the world
    And mock our eyes with air. Thou hast seen these signs;
    They are black vesper’s pageants.”
    —William Shakespeare (1564–1616)

    “A Jew without Jews, without Judaism, without Zionism, without Jewishness, without a temple or an army or even a pistol, a Jew clearly without a home, just the object itself, like a glass or an apple.”
    —Philip Roth (b. 1933)