cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [4/7] git commit: Fix to check against the local name, not the tag name
Date Thu, 27 Mar 2014 13:07:56 GMT
Fix to check against the local name, not the tag name


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8749d147
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8749d147
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8749d147

Branch: refs/heads/master
Commit: 8749d147323bef3801e43b099cd4d455c00d1963
Parents: dc5bde7
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Mar 26 17:37:44 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Mar 27 09:07:49 2014 -0400

----------------------------------------------------------------------
 .../notificationapi/assertions/WSAActionAssertingHandler.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8749d147/rt/ws/eventing/src/test/java/org/apache/cxf/ws/eventing/integration/notificationapi/assertions/WSAActionAssertingHandler.java
----------------------------------------------------------------------
diff --git a/rt/ws/eventing/src/test/java/org/apache/cxf/ws/eventing/integration/notificationapi/assertions/WSAActionAssertingHandler.java
b/rt/ws/eventing/src/test/java/org/apache/cxf/ws/eventing/integration/notificationapi/assertions/WSAActionAssertingHandler.java
index 7f30de0..5ae2ad7 100644
--- a/rt/ws/eventing/src/test/java/org/apache/cxf/ws/eventing/integration/notificationapi/assertions/WSAActionAssertingHandler.java
+++ b/rt/ws/eventing/src/test/java/org/apache/cxf/ws/eventing/integration/notificationapi/assertions/WSAActionAssertingHandler.java
@@ -61,7 +61,7 @@ public class WSAActionAssertingHandler implements SOAPHandler<SOAPMessageContext
         try {
             Element elm = DOMUtils.getFirstElement(context.getMessage().getSOAPHeader());
             while (elm != null) {
-                if (elm.getTagName().equals("Action") && elm.getNamespaceURI().contains("addressing"))
{
+                if (elm.getLocalName().equals("Action") && elm.getNamespaceURI().contains("addressing"))
{
                     if (!elm.getTextContent().equals(action)) {
                         throw new RuntimeException("The event sink should have received "
                                 + "WSA-Action: " + action + " but received: "


Mime
View raw message