The Artima Developer Community
Sponsored Link

Java Buzz Forum
Simplify creating mock objects with Mockito and the Builder Pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
Simplify creating mock objects with Mockito and the Builder Pattern Posted: Sep 7, 2009 10:39 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: Simplify creating mock objects with Mockito and the Builder Pattern
Feed Title: testdriven.com
Feed URL: http://feeds.feedburner.com/testdrivennewslinks?news=10&links=10
Feed Description: Your test-driven development community
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From testdriven.com

Advertisement
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

Read: Simplify creating mock objects with Mockito and the Builder Pattern

Topic: Swing Talks (video and slides available) Previous Topic   Next Topic Topic: Proteans expands in Northern Europe

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use