A mock object conforms to the interface of the real object, but has just enough code to fool the tested object and track its behavior.
Unit testing is the testing of software units in isolation. However, most units do not work alone, but they collaborate with other units. Mock objects are Replacements for collaborators.
EasyMock provides an easy way to use Mock Objects for given interfaces in JUNIT tests.
No comments yet.