A Techno Blog, mainly about Java

Interview with Lucy Morales of The Snorting Bull

At my baseball blog DRAYS BAY, I have an entry on the Durham Bulls, the AAA affiliate of the Tampa Bay Devil Rays.

February 26, 2005 Posted by | Blogging | Leave a comment

Mock Objects

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.

  • Target object: The object being tested
  • Collaborator object: The object created or obtained by the target
  • Mock object: A subclass (or implementation) of the collaborator that follows the mock object pattern.
  • Specialization object: A subclass of the target that overrides the creation method to return a mock instead of a collaborator
  • 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.

    February 25, 2005 Posted by | SW Tools | Leave a comment

    My other blog

    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.

    February 23, 2005 Posted by | Weblogs | Leave a comment


    Link: The kdonald blog.

    February 3, 2005 Posted by | IoC | Leave a comment


    Link: HomePage.

    February 3, 2005 Posted by | Patterns & UML | Leave a comment