At my baseball blog DRAYS BAY, I have an entry on the Durham Bulls, the AAA affiliate of the Tampa Bay Devil Rays.
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.
I have not posted here in a while. I have been busy on another kinda project. Its a new kind of blogging site. Its not about java this time, its baseball. The site is called DRAYS BAY.