Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 15377 invoked from network); 16 Jun 2006 22:50:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 22:50:21 -0000 Received: (qmail 70415 invoked by uid 500); 16 Jun 2006 22:50:21 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 70395 invoked by uid 500); 16 Jun 2006 22:50:21 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 70386 invoked by uid 99); 16 Jun 2006 22:50:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 15:50:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stephen.duncan@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 15:50:20 -0700 Received: by ug-out-1314.google.com with SMTP id q2so1835686uge for ; Fri, 16 Jun 2006 15:49:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GWtfVqVW/yt4GnWBq8d4+wimXyeHkg/2xW+LREa2RsEyOAtrPUhA4PjVT/2HsfBgta9Vcc5LrSfwoTQdmISRlkd6k8HM3WIXJymNb8YwsRBblp4xvhxz+da+Oj59vHKwm8LCgNoeS7xiUiQTpL2hIdLnPwucL+ojH0QcRrfRTKU= Received: by 10.78.33.17 with SMTP id g17mr1241290hug; Fri, 16 Jun 2006 15:49:58 -0700 (PDT) Received: by 10.78.53.20 with HTTP; Fri, 16 Jun 2006 15:49:58 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2006 18:49:58 -0400 From: "Stephen Duncan" To: abdera-dev@incubator.apache.org Subject: Re: Unit Tests in Maven In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Here's the dependency graph reported by Maven (from the site generated when running "mv n site". The first level (stax, etc.) are direct dependencies, levels below that are transitive dependencies. * org.apache.abdera:abdera-parser:jar o stax:stax-api:jar o stax:stax:jar o ws-commons:axiom-impl:jar o junit:junit:jar o jaxen:jaxen:jar + dom4j:dom4j:jar # pull-parser:pull-parser:jar # jaxme:jaxme-api:jar # xml-apis:xml-apis:jar # msv:xsdlib:jar # xpp3:xpp3:jar + jdom:jdom:jar + xom:xom:jar # org.ccil.cowan.tagsoup:tagsoup:jar # xalan:xalan:jar # com.ibm.icu:icu4j:jar + xerces:xmlParserAPIs:jar + xerces:xercesImpl:jar o org.apache.abdera:abdera-core:jar + geronimo:geronimo-activation:jar # org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar # org.apache.geronimo.specs:geronimo-javamail_1.3.1_spec:jar # commons-jelly:commons-jelly-tags-velocity:jar # velocity:velocity:jar * velocity:velocity-dep:jar o commons-logging:commons-logging:jar o ws-commons:axiom-api:jar And here's the chart of the transitive dependencies including versions (sorry for the formatting): compile The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application: GroupId ArtifactId Version Classifier Type Optional com.ibm.icu icu4j 2.6.1 - jar commons-jelly commons-jelly-tags-velocity 1.0 - jar dom4j dom4j 1.5.2 - jar geronimo geronimo-activation 1.0 - jar jaxme jaxme-api 0.3 - jar jdom jdom 1.0 - jar msv xsdlib 20030807 - jar org.apache.geronimo.specs geronimo-activation_1.0.2_spec 1.0 - jar org.apache.geronimo.specs geronimo-javamail_1.3.1_spec 1.0 - jar org.ccil.cowan.tagsoup tagsoup 0.9.7 - jar pull-parser pull-parser 2 - jar velocity velocity 1.4 - jar xalan xalan 2.6.0 - jar xerces xercesImpl 2.8.0 - jar xerces xmlParserAPIs 2.6.2 - jar xml-apis xml-apis 1.0.b2 - jar xom xom 1.0b3 - jar xpp3 xpp3 1.1.3.3 - jar runtime The following is a list of runtime dependencies for this project. These dependencies are required to run the application: GroupId ArtifactId Version Classifier Type Optional velocity velocity-dep 1.4 - jar Any ideas on what I should look at as being responsible for the different XML output? -Stephen On 6/16/06, Stephen Duncan wrote: > There seem to now be two failures. When I first checked out the code, > there were some null pointer exceptions (consistent with a snapshot > from James' website that I was troubleshooting & posting on his > blog), but after updating again to the latest, those went away... > > WIth the Ant build not running the tests, I don't have anything to > compare to to see what is Maven's fault. > > Here are the failures. THe first one has happened for a while: spaces > are included in the output, but weren't when using Ant. Most likely > I'll have to analyze what dependencies are different in Maven from > Ant. Note that when running the tests in Eclipse (set up using > Maven), these same failures still happen. The second error > (ClassCastException) is new... > > -Stephen > > ------------------------------------------------------------------------------- > Test set: org.apache.abdera.test.parser.stax.FOMTest > ------------------------------------------------------------------------------- > Tests run: 7, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.196 > sec <<< FAILURE! > testCreate(org.apache.abdera.test.parser.stax.FOMTest) Time elapsed: > 0.023 sec <<< FAILURE! > junit.framework.ComparisonFailure: > expected:<...http://example.org/"[/>John > Doeurn:uuid:60a76c80-d399-11d9-b93C-0003939e0 > af6Bob > Jones term="example"/>re: Atom-Powered Robots > Run Amok e>urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b type="text">A response thr="http://purl.org/syndication/thread/1.0" > href="http://example.org/2003/12/13/atom03" > ref="urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"/> itle type="text">Atom-Powered Robots Run Amok href="http://example.org/2003/12/13/atom03"]/>urn:uuid:122...> > but was:<...http://example.org/"[ > />John > Doeurn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6Bob > Jones< > a:category term="example" />re: > Atom-Powered Robots Run Amok href="/2003/12/13/atom03/1" />urn:uuid:1225c695-cfb > 8-4ebb-aaaa-80cb323feb5bA > response xmlns:thr="http://purl.org/syndication/thread/1.0" > href="http://example. > org/2003/12/13/atom03" > ref="urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a" > />Atom-Powered Robots Run > Amok ef="http://example.org/2003/12/13/atom03" ]/>urn:uuid:122...> > at junit.framework.Assert.assertEquals(Assert.java:81) > at junit.framework.Assert.assertEquals(Assert.java:87) > at org.apache.abdera.test.parser.stax.FOMTest.testCreate(FOMTest.java:104) > > testTextFilter(org.apache.abdera.test.parser.stax.FOMTest) Time > elapsed: 0.003 sec <<< ERROR! > org.apache.axiom.om.OMException: java.lang.ClassCastException: > org.apache.abdera.parser.stax.FOMDocument > at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:315) > at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:552) > at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:562) > at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:218) > at org.apache.abdera.parser.stax.FOMElement.getTextElement(FOMElement.java:368) > at org.apache.abdera.parser.stax.FOMElement.getText(FOMElement.java:433) > at org.apache.abdera.parser.stax.FOMSource.getTitle(FOMSource.java:417) > > > -- > Stephen Duncan Jr > www.stephenduncanjr.com > -- Stephen Duncan Jr www.stephenduncanjr.com