cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chip Childers <chip.child...@sungard.com>
Subject Re: org.apache.hypervisor.kvm.resource.LibvirtComputingResourceTest Failure
Date Wed, 10 Jul 2013 13:25:17 GMT
On Wed, Jul 10, 2013 at 03:01:35PM +0200, Daan Hoogland wrote:
> I would not bother to look at it, if I were your, Dharmesh. Find a good
> lightweigth xmlunit-like tool or  another xml comaparison tool to do the
> checking. parsers and dom generators can do whatever they like with
> attribute order. I would say not with element order, but still trying to
> make the xml (un)marshalling do exactly what you want is not worth your
> time.
> 
> regards,
> Daan

+1 to what Daan says.  The XML specification doesn't require any parsers
to maintain the exact same text representation of the XML data after
it's been parsed and subsequently dumped.  It only has to be the same
*data*.

> 
> 
> 
> On Wed, Jul 10, 2013 at 8:11 AM, Dharmesh Kakadia <dhkakadia@gmail.com>wrote:
> 
> > Hi,
> >
> > I am trying to re-factor com.cloud to org.apache. While doing so 2 test
> > cases in org.apache.hypervisor.kvm.resource.LibvirtComputingResourceTest
> > are failing and after trying for 2 days I have no idea why.
> >
> > Output of build is here http://apaste.info/8Tio
> >
> > From the output its clear that both the xml strings in test are same, but
> > the elemenets are in diffrent order and thus string comparision fails. Can
> > anyone point out why they are coming in different order ?
> >
> > Thanks,
> > Dharmesh
> >

Mime
View raw message