commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Davey <Michael.Da...@CodeRage.ORG>
Subject [PATCH][betwixt] CustomerBean, PersonBean, AddressBean
Date Sun, 17 Nov 2002 21:46:30 GMT
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

Mime
View raw message