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:

    Come let us mock at the good
    That fancied goodness might be gay,
    And sick of solitude
    Might proclaim a holiday:
    Wind shrieked and where are they?
    William Butler Yeats (1865–1939)

    To quarrel with the uncertainty that besets us in intellectual affairs would be about as reasonable as to object to live one’s life with due thought for the morrow because no man can be sure he will alive an hour hence.
    Thomas Henry Huxley (1825–95)