abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r488840 - /incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Date Tue, 19 Dec 2006 22:41:40 GMT
Author: jmsnell
Date: Tue Dec 19 14:41:40 2006
New Revision: 488840

URL: http://svn.apache.org/viewvc?view=rev&rev=488840
Log:
Test case for simple extension fix

Modified:
    incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java

Modified: incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java?view=diff&rev=488840&r1=488839&r2=488840
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Tue Dec 19 14:41:40 2006
@@ -733,4 +733,11 @@
     Entry entry = (Entry)(doc.getRoot().clone());
     assertEquals(entry.getContentType(), Content.Type.HTML);
   }
+  
+  public void testSimpleExtension() throws Exception {
+    Abdera abdera = new Abdera();
+    Entry entry = abdera.newEntry();    
+    entry.setDraft(true);  // this will create an app:control element
+    assertNull(entry.getControl().getSimpleExtension(new QName("urn:foo", "foo")));
+  }
 }



Mime
View raw message