Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A92A910F66 for ; Wed, 10 Jul 2013 13:26:05 +0000 (UTC) Received: (qmail 86572 invoked by uid 500); 10 Jul 2013 13:26:05 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 86538 invoked by uid 500); 10 Jul 2013 13:26:05 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 86530 invoked by uid 99); 10 Jul 2013 13:26:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 13:26:04 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [74.125.149.242] (HELO na3sys009aog117.obsmtp.com) (74.125.149.242) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 13:25:59 +0000 Received: from mail-vc0-f172.google.com ([209.85.220.172]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKUd1gvpVgiMnmd/S6QmYBVG4Y9M3uc8SH@postini.com; Wed, 10 Jul 2013 06:25:38 PDT Received: by mail-vc0-f172.google.com with SMTP id ib11so5496592vcb.3 for ; Wed, 10 Jul 2013 06:25:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=N0CP2MZDaZkreF22eTKPhsZ/yHHCB1v7EyhZ/h1TH2g=; b=V0vVY6QvK+kN7mPxKMALtLOds6KSBOP1jlRagRIn1V05A/lECCp0rxJ9V5HVHvUL4o 2GFTS0WQ6NZ2gdtNkmR5KDm0jHoj5qVmWwjvJDDywumupKjKXn8qn3RnagB/7QhiK5xv kbYXX8/hDDxVtaB+NVE5KNzPbR0AHromdjFam+pzj4Qu7i+28f2fBscTyI0T1X/uMuso P/JuJnxkzDtzLTr7hDIwZu1FNhjveRLqKrPRbVkuHL0xo5bK1ENJxtj1eOdKwNCPmgK+ AcnPWIqsOcjd7KU3976BxWNjDivR0oebKRc6fPOCnMy5tmxRMNKQ0Gv6oQLYsznxZEtK rK+A== X-Received: by 10.52.20.144 with SMTP id n16mr15823866vde.105.1373462717514; Wed, 10 Jul 2013 06:25:17 -0700 (PDT) X-Received: by 10.52.20.144 with SMTP id n16mr15823855vde.105.1373462717294; Wed, 10 Jul 2013 06:25:17 -0700 (PDT) Received: from localhost ([216.203.6.11]) by mx.google.com with ESMTPSA id s10sm24848608vdt.13.2013.07.10.06.25.16 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jul 2013 06:25:16 -0700 (PDT) Date: Wed, 10 Jul 2013 09:25:17 -0400 From: Chip Childers To: dev@cloudstack.apache.org Subject: Re: org.apache.hypervisor.kvm.resource.LibvirtComputingResourceTest Failure Message-ID: <20130710132517.GH14215@USLT-205755.sungardas.corp> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmCPH38APLgyUZ+3XoaAkc1J62VvfcSLC70lJuhO5oWYmgUm8ynami3X0dN28qWOMvxMgZO3xK8nQ6k5hTeFPCSef2biCcHeUtYo2xpxAG4ZSz/8mMjKZbRxqzpAAaGTjXK3AUtxN1mjMulsUq4Lm79iSdrzxxMAZ5q8z9Z1wFz/Yzme0w= X-Virus-Checked: Checked by ClamAV on apache.org 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 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 > >