geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinath Perera <hemap...@gmail.com>
Subject Re: AXIS module, ComplexWebServicesTest question.
Date Thu, 18 Nov 2004 01:59:34 GMT
Hi John; 
There is no special intent behind it (the EchoStruct used is loaded
from the Axis Generated code where the .equals() overridden .. but let
us not depend on this and check does values of EchoStruct equal by
ourself).
Thanks
Srinath


On Wed, 17 Nov 2004 09:52:03 -0500 (EST), John Childs
<jchilds_j2ee@yahoo.ca> wrote:
> Hi all, but more specifically Srinath,
> 
> I'm looking at the ComplexWebService test in the axis
> module and finding something a little strange.
> 
> My concern is the assertEquals line, it's checking two
> values structval and structret which are both turn out
> to be of type EchoStruct.
> 
> The problem is that EchoStruct doesn't have an
> implementation of .equals, so it's checking the
> hashcodes on the objects themselves.  So one of two
> things needs to be done.
> 
> 1)  Implement .equals on EchoStruct.
> 2)  change assertEquals to be assertSame and look for
> the reason that structret and structval don't refer to
> the same object instance.
> 
> I'm not sure who wrote this test, or it's intent, so I
> need that simple question answered (1 or 2) to proceed
> properly :-)
> 
> Any wisdom passed my way would be appreciated.
> 
> Thanks!
> 
> John
> 
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca
>

Mime
View raw message