abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r416517 - in /incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed: ./ atom10/
Date Thu, 22 Jun 2006 23:54:04 GMT
Author: jmsnell
Date: Thu Jun 22 16:54:04 2006
New Revision: 416517

URL: http://svn.apache.org/viewvc?rev=416517&view=rev
Log:
(Eclipse hiccup)

>From Garrett Rooney...

Move code for reading xml files off of disk into a common base class.

[ in parser/src/java/org/apache/abdera/test/parser/stax ]

* BaseParserTestCase.java: New file.

* AtomConformanceTest.java
 Extend BaseParserTestCase.
 (parse): Removed.
 (testContentTypes, testOrder, testLink): Don't call .toString() on our
  URI.

* FeedParserTest.java
 Extend BaseParserTestCase.
 (parse): Removed.
 (baseURI): New member.
 (setUp): New method, initializes baseURI.
 (testAtom10Namespace, testEntryAuthorEmail, testEntryAuthorName,
  testEntryContentBase64, testEntryContentBase642): Use our baseURI to
  resolve the actual URI, and pass it to parse. 

* build/build.xml
 (compile.parser): Copy all the contents of the resource directory. 

Added:
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/atom10_namespace.xml
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/entry_author_email.xml
      - copied unchanged from r416512, incubator/abdera/java/trunk/parser/src/test/resources/feedparser/entry_author_email.xml
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/entry_author_name.xml
      - copied unchanged from r416512, incubator/abdera/java/trunk/parser/src/test/resources/feedparser/entry_author_name.xml
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/entry_content_base64.xml
      - copied unchanged from r416512, incubator/abdera/java/trunk/parser/src/test/resources/feedparser/entry_content_base64.xml
    incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/entry_content_base64_2.xml
      - copied unchanged from r416512, incubator/abdera/java/trunk/parser/src/test/resources/feedparser/entry_content_base64_2.xml

Added: incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/atom10_namespace.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/atom10_namespace.xml?rev=416517&view=auto
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/atom10_namespace.xml
(added)
+++ incubator/abdera/java/trunk/parser/src/test/resources/www.feedparser.org/tests/welformed/atom10/atom10_namespace.xml
Thu Jun 22 16:54:04 2006
@@ -0,0 +1,7 @@
+<!--
+Description: Atom namespace (official)
+Expect:      not bozo and feed['title'] == u'Example Atom'
+-->
+<feed xmlns="http://www.w3.org/2005/Atom">
+  <title>Example Atom</title>
+</feed>
\ No newline at end of file



Mime
View raw message