Some of the things I've learned every day since Oct 10, 2016
63: Mock Objects
December 14, 2016Posted by on
In programming with object-oriented design, mock objects are objects which simulate in tests or experiments the behavior of other objects of interest which themselves can’t practically be used.
Examples of objects which may lend themselves to substitution by mock objects include those which have states that are hard to recreate (such as ones following non-deterministic processes) and those that simply do not yet exist.