svn commit: r518811 - /xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Thu Mar 15 17:04:03 2007
New Revision: 518811

URL: http://svn.apache.org/viewvc?view=rev&rev=518811
Log:
use dom1

Modified:
    xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java

Modified: xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java?view=diff&rev=518811&r1=518810&r2=518811
==============================================================================
--- xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java (original)
+++ xml/xindice/trunk/java/tests/src/org/apache/xindice/xml/dom/NodeTest.java Thu Mar 15 17:04:03 2007
@@ -89,19 +89,19 @@
     }
 
     public void testCommonEntities() {
-        Node n = root.getFirstChild().getFirstChild();
-        assertEquals("<common & entities>", n.getTextContent());
+        Node n = root.getFirstChild().getFirstChild().getFirstChild();
+        assertEquals("<common & entities>", n.getNodeValue());
     }
 
     public void testCDATA() {
-        Node n = root.getFirstChild().getFirstChild().getNextSibling();
-        assertEquals("&&& CDATA Section! &&&", n.getTextContent());
+        Node n = root.getFirstChild().getFirstChild().getNextSibling().getFirstChild();
+        assertEquals("&&& CDATA Section! &&&", n.getNodeValue());
     }
 
     public void testComment() {
         Node n = ((Element) root).getElementsByTagName("x").item(0).getPreviousSibling();
         assertEquals(Node.COMMENT_NODE, n.getNodeType());
-        assertEquals(" comment ", n.getTextContent());
+        assertEquals(" comment ", n.getNodeValue());
     }
 
     public void testNodeEquality() throws Exception {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.