abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r486692 - /incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
Date Wed, 13 Dec 2006 15:46:26 GMT
Author: jmsnell
Date: Wed Dec 13 07:46:25 2006
New Revision: 486692

URL: http://svn.apache.org/viewvc?view=rev&rev=486692
Log:
Stupid inconsistent generics handling....  
Fix so it compiles with ant.

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

Modified: incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.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/XhtmlTest.java?view=diff&rev=486692&r1=486691&r2=486692
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
Wed Dec 13 07:46:25 2006
@@ -20,6 +20,7 @@
 import org.apache.abdera.Abdera;
 import org.apache.abdera.model.Content;
 import org.apache.abdera.model.Div;
+import org.apache.abdera.model.Element;
 import org.apache.abdera.model.Entry;
 
 import junit.framework.TestCase;
@@ -33,7 +34,8 @@
     entry.setContentAsXhtml("<p>Test</p>");
     assertNotNull(entry.getContent());
     assertEquals(entry.getContentType(), Content.Type.XHTML);
-    assertTrue(entry.getContentElement().getValueElement() instanceof Div);
+    Element el = entry.getContentElement().getValueElement();
+    assertTrue(el instanceof Div);
     
     entry = abdera.newEntry();
     entry.setContent("<a><b><c/></b></a>", Content.Type.XML);



Mime
View raw message