Author: ajith
Date: Wed Jul  5 23:01:22 2006
New Revision: 419451

URL: http://svn.apache.org/viewvc?rev=419451&view=rev
Log:
1. Changed the getTextContent to getNodeValue. The former is a DOM level 3 API 
feature which is not supported in JK 1.4. The getNodeValue is supported in both 
the API's

Modified:
    webservices/commons/trunk/modules/XmlSchema/test/tests/AnnotationTest.java
    webservices/commons/trunk/modules/XmlSchema/test/tests/NotationTest.java

Modified: 
webservices/commons/trunk/modules/XmlSchema/test/tests/AnnotationTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/test/tests/AnnotationTest.java?rev=419451&r1=419450&r2=419451&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/test/tests/AnnotationTest.java 
(original)
+++ webservices/commons/trunk/modules/XmlSchema/test/tests/AnnotationTest.java 
Wed Jul  5 23:01:22 2006
@@ -101,7 +101,7 @@
                 for (int j = 0; j < nl.getLength(); j++) {
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
-                        assertEquals("testing987", n.getTextContent());
+                        assertEquals("testing987", n.getNodeValue());
                     }
                 }
             }
@@ -161,7 +161,7 @@
                 for (int j = 0; j < nl.getLength(); j++) {
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
-                        assertEquals("testing123", n.getTextContent());
+                        assertEquals("testing123", n.getNodeValue());
                     }
                 }
             } else if (o instanceof XmlSchemaDocumentation) {
@@ -264,7 +264,7 @@
                 for (int j = 0; j < nl.getLength(); j++) {
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
-                        assertEquals("testing123", n.getTextContent());
+                        assertEquals("testing123", n.getNodeValue());
                     }
                 }
             } else if (o instanceof XmlSchemaDocumentation) {
@@ -276,7 +276,7 @@
                 for (int j = 0; j < nl.getLength(); j++) {
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
-                        assertEquals("testing987", n.getTextContent());
+                        assertEquals("testing987", n.getNodeValue());
                     }
                 }
             }

Modified: 
webservices/commons/trunk/modules/XmlSchema/test/tests/NotationTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/test/tests/NotationTest.java?rev=419451&r1=419450&r2=419451&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/test/tests/NotationTest.java 
(original)
+++ webservices/commons/trunk/modules/XmlSchema/test/tests/NotationTest.java 
Wed Jul  5 23:01:22 2006
@@ -178,7 +178,7 @@
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
                         assertEquals("Location of the corporate mascot.",
-                                     n.getTextContent());
+                                     n.getNodeValue());
                     }
                 }
             } else if (name.equals("teamLogo")) {
@@ -193,7 +193,7 @@
                     Node n = nl.item(j);
                     if (n.getNodeType() == Node.TEXT_NODE) {
                         assertEquals("Location of the corporate logo.",
-                                     n.getTextContent());
+                                     n.getNodeValue());
                     }
                 }
             } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to