abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r488502 - /incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Date Tue, 19 Dec 2006 01:57:39 GMT
Author: jmsnell
Date: Mon Dec 18 17:57:38 2006
New Revision: 488502

URL: http://svn.apache.org/viewvc?view=rev&rev=488502
Log:
Test case for https://issues.apache.org/jira/browse/ABDERA-30

Modified:
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java?view=diff&rev=488502&r1=488501&r2=488502
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
(original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Mon Dec 18 17:57:38 2006
@@ -724,4 +724,14 @@
     }
   }
   
+  public void testContentClone() throws Exception {
+    String s = "<entry xmlns='http://www.w3.org/2005/Atom'><content type='html'>test</content></entry>";
+    ByteArrayInputStream in = new ByteArrayInputStream(s.getBytes());
+    Abdera abdera = new Abdera();
+    Parser parser = abdera.getParser();
+    Document doc = parser.parse(in);
+    Entry entry = (Entry)(doc.getRoot().clone());
+    assertEquals(entry.getContentType(), Content.Type.HTML);
+  }
+  
 }



Mime
View raw message