commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r476030 - /jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
Date Fri, 17 Nov 2006 02:40:26 GMT
Author: rahul
Date: Thu Nov 16 18:40:25 2006
New Revision: 476030

URL: http://svn.apache.org/viewvc?view=rev&rev=476030
Log:
For non-namespaced nodes, Element#getAttributeNode("foo") is more durable than Element#getAttributeNodeNS(null,
"foo")
Reported by: Dennis Lundberg <dennisl AT apache DOT org>

Modified:
    jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java

Modified: jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java?view=diff&rev=476030&r1=476029&r2=476030
==============================================================================
--- jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
(original)
+++ jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
Thu Nov 16 18:40:25 2006
@@ -434,11 +434,11 @@
         assertTrue(result instanceof Element);
         Element element = (Element)result;
         
-        assertNotNull(element.getAttributeNodeNS(null, "firstName"));
-        assertEquals("First Name", element.getAttributeNodeNS(null, "firstName").getNodeValue());
-        assertEquals("firstName", element.getAttributeNodeNS(null, "firstName").getLocalName());
-        assertEquals(null, element.getAttributeNodeNS(null, "firstName").getPrefix());
-        assertEquals("firstName", element.getAttributeNodeNS(null, "firstName").getName());
+        assertNotNull(element.getAttributeNode("firstName"));
+        assertEquals("First Name", element.getAttributeNode("firstName").getNodeValue());
+        assertEquals("firstName", element.getAttributeNode("firstName").getLocalName());
+        assertEquals(null, element.getAttributeNode("firstName").getPrefix());
+        assertEquals("firstName", element.getAttributeNode("firstName").getName());
 
     }     
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message