abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r557502 - /incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java
Date Thu, 19 Jul 2007 06:28:37 GMT
Author: jmsnell
Date: Wed Jul 18 23:28:36 2007
New Revision: 557502

URL: http://svn.apache.org/viewvc?view=rev&rev=557502
Log:
Add a feed paging test that ensures the qname prefix is handled properly

Modified:
    incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java

Modified: incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java?view=diff&rev=557502&r1=557501&r2=557502
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/test/java/org/apache/abdera/test/ext/history/FeedPagingTest.java
Wed Jul 18 23:28:36 2007
@@ -17,6 +17,8 @@
 */
 package org.apache.abdera.test.ext.history;
 
+import javax.xml.namespace.QName;
+
 import org.apache.abdera.Abdera;
 import org.apache.abdera.ext.history.FeedPagingHelper;
 import org.apache.abdera.model.Feed;
@@ -29,7 +31,7 @@
     
     Abdera abdera = new Abdera();
     
-    Feed feed = abdera.getFactory().newFeed();
+    Feed feed = abdera.newFeed();
 
     FeedPagingHelper.setComplete(feed, true);
     FeedPagingHelper.setArchive(feed, true);
@@ -70,4 +72,11 @@
     assertEquals(FeedPagingHelper.getNext(feed).toString(),"http://example.org/bar");
   }
   
+  public static void testHistory2() throws Exception {
+    Abdera abdera = new Abdera();
+    Feed feed = abdera.newFeed();
+    QName complete = new QName(FeedPagingHelper.FHNS, "complete","x");
+    feed.addExtension(complete);
+    assertTrue(FeedPagingHelper.isComplete(feed));
+  }
 }



Mime
View raw message