You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2009/06/17 00:40:03 UTC
svn commit: r785439 - in
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src:
main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java
test/java/org/apache/axiom/om/OMElementTestBase.java
Author: veithen
Date: Tue Jun 16 22:40:02 2009
New Revision: 785439
URL: http://svn.apache.org/viewvc?rev=785439&view=rev
Log:
Fixed WSCOMMONS-478.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMElementTestBase.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java?rev=785439&r1=785438&r2=785439&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/traverse/OMChildrenLocalNameIterator.java Tue Jun 16 22:40:02 2009
@@ -41,6 +41,6 @@
* @return true if equals
*/
public boolean isEqual(QName searchQName, QName currentQName) {
- return searchQName.getLocalPart().equals(searchQName.getLocalPart());
+ return searchQName.getLocalPart().equals(currentQName.getLocalPart());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMElementTestBase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMElementTestBase.java?rev=785439&r1=785438&r2=785439&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMElementTestBase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMElementTestBase.java Tue Jun 16 22:40:02 2009
@@ -159,6 +159,16 @@
counter);
}
+ public void testGetChildrenWithLocalName() {
+ OMElement elt = getTestResourceAsElement(omMetaFactory, TestConstants.SOAP_SOAPMESSAGE1);
+ Iterator it = elt.getChildrenWithLocalName(SOAP11Constants.BODY_LOCAL_NAME);
+ assertTrue(it.hasNext());
+ OMElement child = (OMElement)it.next();
+ assertEquals(new QName(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP11Constants.BODY_LOCAL_NAME), child.getQName());
+ assertFalse(it.hasNext());
+ }
+
public void testSetText() {
OMFactory factory = omMetaFactory.getOMFactory();
String localName = "TestLocalName";