im trying to test to see if the contents of the acutal object are the same as the expected object but all i get is this
expected: <BankAccount@11b9fb1> but was: <BankAccount@913fe2>
both objects contain the same information but the assertEquals and the assertSame methods only seem to be checking to see if both objects are in the same memory location and not their values. ( please correct me if im wrong on this )
ive used other assertEquals methods on the data extrated from the two objects and they all pass.
are there any JUnit methods that will compare the info contained in the object (i havnt found any) or do i have to write individual test methods do achieve this?
thanks for your help
expected: <BankAccount@11b9fb1> but was: <BankAccount@913fe2>
both objects contain the same information but the assertEquals and the assertSame methods only seem to be checking to see if both objects are in the same memory location and not their values. ( please correct me if im wrong on this )
ive used other assertEquals methods on the data extrated from the two objects and they all pass.
are there any JUnit methods that will compare the info contained in the object (i havnt found any) or do i have to write individual test methods do achieve this?
thanks for your help