Fixed CorrelationCustomSoapHeaderTest

Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/0a73a9e2
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/0a73a9e2
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/0a73a9e2

Branch: refs/heads/master
Commit: 0a73a9e2428cb3327839cee4a971c1002fef3356
Parents: 7607042
Author: sathwik <[email protected]>
Authored: Sun Apr 29 11:12:34 2018 +0530
Committer: sathwik <[email protected]>
Committed: Sun Apr 29 11:12:34 2018 +0530

----------------------------------------------------------------------
 .../ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/0a73a9e2/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java
----------------------------------------------------------------------
diff --git 
a/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java
 
b/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java
index 7969c7e..3f6a41c 100644
--- 
a/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java
+++ 
b/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationCustomSoapHeaderTest.java
@@ -50,7 +50,8 @@ public class CorrelationCustomSoapHeaderTest extends 
Axis2TestBase {
 
         //Take out the IID from the response which is used as the correlation 
value
         Element rootElemt = DOMUtils.stringToDOM(response1);
-        Element soapBody = DOMUtils.getFirstChildElement(rootElemt);
+        Element soapHeader = DOMUtils.getFirstChildElement(rootElemt);
+        Element soapBody = DOMUtils.getNextSiblingElement(soapHeader);
         assertEquals("Body", soapBody.getLocalName());
 
         Element responseElem = DOMUtils.getFirstChildElement(soapBody);

Reply via email to