abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Duncan" <stephen.dun...@gmail.com>
Subject Unit Tests in Maven
Date Fri, 16 Jun 2006 22:05:50 GMT
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/"[/><a:author><a:name>John
Doe</a:name></a:author><a:id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0
af6</a:id><a:contributor><a:name>Bob
Jones</a:name></a:contributor><a:category
term="example"/><a:entry><a:title type="text">re: Atom-Powered Robots
Run Amok</a:titl
e><a:link href="/2003/12/13/atom03/1"/><a:id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b</a:id><a:summary
type="text">A response</a:summary><thr:in-reply-to 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"/></a:entry><a:entry><a:t
itle type="text">Atom-Powered Robots Run Amok</a:title><a:link
href="http://example.org/2003/12/13/atom03"]/><a:id>urn:uuid:122...>
but was:<...http://example.org/"[
 /><a:author><a:name>John
Doe</a:name></a:author><a:id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</a:id><a:contributor><a:name>Bob
Jones</a:name></a:contributor><
a:category term="example" /><a:entry><a:title type="text">re:
Atom-Powered Robots Run Amok</a:title><a:link
href="/2003/12/13/atom03/1" /><a:id>urn:uuid:1225c695-cfb
8-4ebb-aaaa-80cb323feb5b</a:id><a:summary type="text">A
response</a:summary><thr:in-reply-to
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"
/></a:entry><a:entry><a:title type="text">Atom-Powered Robots Run
Amok</a:title><a:link hr
ef="http://example.org/2003/12/13/atom03" ]/><a:id>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

Mime
View raw message