You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Michael Davey <Mi...@CodeRage.ORG> on 2002/11/17 22:46:30 UTC

[PATCH][betwixt] CustomerBean, PersonBean, AddressBean

Hi,

Here are three simple patches that change the contract of the 
CustomerBean, PersonBean and AddressBean test classes in betwixt, so 
that these beans can be compared in a sensible manner.

The patches change the toString() method and add equals() and hashCode() 
methods so that any two CustomerBean, PersonBean or AddressBean 
instances with the same data, are equivalent to each other.

I haven't touched LoopBean as changing it in this way would break the 
cyclic loop test as it is currently implemented.

-- 
Michael