Haven't got the source handy, but my only recollection of equals is that it
needs to be done in such a way that we can pass in wildcard objects that
always compare true (it has to do with comparing in the right direction).
We've been having a lot of success with this approach especially with
generated mocks that take lots of parameters and you are only interested in
a few of them.
Actually, now that Vectors and collections implement equals properly, we can
possibly even ditch this object and just use the more general ArrayList?
Tim
-----Original Message-----
From: moc...@li...
[mailto:moc...@li...]On Behalf Of
Jeff Martin
Sent: 03 September 2002 19:00
To: MockObjects
Subject: [MO-java-dev] MapEntry.equals
Currently MapEntry.equals will only compare the references to a byte
array not the content.
I think we should probably change this. Comments?
--
jeff martin
information technologist
mkodo limited
mobile: 44 (0) 78 5547 8331
phone: 44 (0) 20 2226 4545
email: je...@mk...
www.mkodo.com
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002
|