How to test method that return object of other class
"Sunny Choudhary" <[email protected]> Tue, 12 Feb 2008 12:37:08 +0530
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
_____ From: Sunny Choudhary [mailto:[email protected]] Sent: Tuesday, February 12, 2008 11:54 AM To: '[email protected]' Subject: How to test method that return object of other class Hi I want to test a method of a class which returns an object of some other class that contains other objects and primitives. How can I use the assert statements to unit test this and if the method is returning the object (containing many variables) then how to enter it in the assert statements. -Sunny DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.