servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r795774 - /servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java
Date Mon, 20 Jul 2009 11:48:15 GMT
Author: lhein
Date: Mon Jul 20 11:48:14 2009
New Revision: 795774

URL: http://svn.apache.org/viewvc?rev=795774&view=rev
Log:
fixed broken unit test

Modified:
    servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java

Modified: servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java
URL: http://svn.apache.org/viewvc/servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java?rev=795774&r1=795773&r2=795774&view=diff
==============================================================================
--- servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java
(original)
+++ servicemix/utils/trunk/src/test/java/org/apache/servicemix/jbi/jaxp/StaxSourceTest.java
Mon Jul 20 11:48:14 2009
@@ -113,7 +113,7 @@
         assertEquals(1, l.getLength());
         assertEquals(1, l.item(0).getChildNodes().getLength());
         Text txt = (Text) l.item(0).getFirstChild();
-        assertEquals("   ", txt.getTextContent());
+        assertEquals("   ", txt.getData());
 
         // Check long string
         l = doc.getDocumentElement().getElementsByTagName("long");
@@ -133,7 +133,7 @@
                 expected.append("\n");
             }
         }
-        assertEquals(expected.toString(), txt.getTextContent());
+        assertEquals(expected.toString(), txt.getData());
     }
 
     protected void compare(String s1, String s2) {



Mime
View raw message