Hi,
I am using EasyMock 2.2. I have a function like ...
void updateCustDetails (Customer cust ) {}
When using EasyMock.expect , I am using the following code
EasyMock.expect(dataServiceMock.updateCustDetails(cust));
This always gives an assertion error because, 'cust' is a reference type and the assertion is comparing the memory locations and therefore failing each time. During
testing the Object sent has the same values for attribute but as it is a different object it has a different memory location.
Which is the best way to get past this problem ? Thanks.