Simplify creating mock objects with Mockito and the Builder Pattern
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






