This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Unmarshalling the XML to create an Object of a class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Unmarshalling the XML to create an Object of a class" Watch "Unmarshalling the XML to create an Object of a class" New topic
Author

Unmarshalling the XML to create an Object of a class

batuk chatuk
Greenhorn

Joined: Dec 29, 2006
Posts: 12
I am writing the JUnit testcases for my application. In the application there are complex VOs (Value objects) and TO objects which have arrayLists.Now i create an dummy XML from the dummy data, unmarshall it to create dummy object and then Compare it to the above actual object.

For comparing simple objects which have primitive types i can unmarshall the dummy XML to object and compare it. (with refletion API)
Same thing i am not able to do when there are Arraylists and arraylists within arraylists in an object.. When I try to unmarshall that, i dont get the converted object in proper format.

Is there any way I can unmarshal complex objects with 3 to 4 hierarchies so I can compare them and test???
 
jQuery in Action, 2nd edition
 
subject: Unmarshalling the XML to create an Object of a class
 
Similar Threads
WebService for JPA Domain model dilemma
resultset.next() takes too much time
What exactly is the point of mock objects (I don't understand them)?
Unmarshalling the XML to create an Object of a class
WS for existing application