Monday, February 27, 2006 02:12 AM
I wish to compare 2 objects. Not the references, but the values of the objects.
assertEquals(expectedReturn, actualReturn) compares only the reference and not the values as said in the API.
When I made the actualReturn = expectedReturn, the test passed on peacefully.
How to 2 different objects of same class whose members have the same values?
Thanks in advance,