Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 6927 invoked from network); 16 Jun 2006 22:06:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 22:06:13 -0000 Received: (qmail 22417 invoked by uid 500); 16 Jun 2006 22:06:13 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 22392 invoked by uid 500); 16 Jun 2006 22:06:13 -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 22383 invoked by uid 99); 16 Jun 2006 22:06:12 -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:06:12 -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.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 15:06:12 -0700 Received: by ug-out-1314.google.com with SMTP id q2so1821320uge for ; Fri, 16 Jun 2006 15:05:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jNTfOiqZu5uNNAGm1UMGlKSlEK8y6vqFLXHN5txeER7iKUXEhHqHfkdzBx8u3inIyOAc7fRnfFm2nkSqb2DakxFP2sFSNteuQFkMdY33SVIlqptm98CqJzMN82yavLp+2nzwKMhZQor1ysRRaP3t/43+mZC7a3YH9Wa4uFVWHlM= Received: by 10.78.51.9 with SMTP id y9mr1238370huy; Fri, 16 Jun 2006 15:05:50 -0700 (PDT) Received: by 10.78.53.20 with HTTP; Fri, 16 Jun 2006 15:05:50 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2006 18:05:50 -0400 From: "Stephen Duncan" To: abdera-dev@incubator.apache.org Subject: Unit Tests in Maven MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Jonesre: Atom-Powered Robots Run Amokurn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5bA responseAtom-Powered Robots Run Amokurn: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 Amokurn:uuid:1225c695-cfb 8-4ebb-aaaa-80cb323feb5bA responseAtom-Powered Robots Run Amokurn: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