Today I Learned

Some of the things I've learned every day since Oct 10, 2016

63: Mock Objects

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: