geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Childs <>
Subject Re: AXIS module, ComplexWebServicesTest question.
Date Thu, 18 Nov 2004 15:20:42 GMT
Hi Srinath,

The EchoStruct class itself isn't generated is it?  If so, there are 
some spelling mistakes in variable/method names which should be 
corrected in the generator.  If it isn't generated then I should just be 
adding a .equals method to it, then the comparison will be automagic.


Srinath Perera wrote:
> 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
> <> 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.
>>Post your free ad now!

View raw message