aspose file tools
The moose likes Testing and the fly likes Best practice to Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Best practice to "dummy object"" Watch "Best practice to "dummy object"" New topic
Author

Best practice to "dummy object"

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

The method i want to test need to get a complex model graph (POJO objects) and save it to the DB.

I wonder if there is any plugin that can help to instantiate or create dummy objects (object that extend the objects in the graph and return default values)

Thank you
harsha galla
Greenhorn

Joined: Sep 24, 2008
Posts: 18
Originally posted by avihai marchiano:
Hey,

The method i want to test need to get a complex model graph (POJO objects) and save it to the DB.

I wonder if there is any plugin that can help to instantiate or create dummy objects (object that extend the objects in the graph and return default values)

Thank you

Hey, there are some tools to generate mockobjects(dummy objects).EasyMock is a good one among them , so you can try it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best practice to "dummy object"
 
Similar Threads
Serializing an Object Graph only using Custom Serialization(Externalizable)
HashSet internal working
Traverse on object graph
Object graph - do I need to know this?
What exactly is the point of mock objects (I don't understand them)?