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:07:56 GMT
Ok, so instead of implementing .equals in EchoStruct you want me to 
check all the values directly in the Test and assert on each...I can do 

Thanks Srinath.


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