testdriven.com Wrangling quality out of chaos

Simplify creating mock objects with Mockito and the Builder Pattern

09.07.2009 · Posted in Blogosphere

You know that if you do unit testing at some point you will run into mocking. There are many libraries out there like JMock, EasyMock, but my favorite is Mockito. In this post I explore the option of using a Builder Pattern to simplify the creation of a hierarchical mock object that contains nested mock objects itself.

Take a look at the posting:

http://www.dzone.com/links/simplify_creating_mock_objects_with_mockito_and_t.html

  • del.icio.us
  • Digg
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Comments are closed