cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf-fediz git commit: Fixing merge
Date Fri, 31 Jul 2015 13:37:31 GMT
Fixing merge


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

Branch: refs/heads/1.2.x-fixes
Commit: 5a225d15df038dd1275cec6ccc24c142519ef365
Parents: c933293
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Jul 31 14:37:22 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jul 31 14:37:22 2015 +0100

----------------------------------------------------------------------
 .../core/federation/FederationResponseTest.java | 26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/5a225d15/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationResponseTest.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationResponseTest.java
b/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationResponseTest.java
index 125a2ec..c833d0e 100644
--- a/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationResponseTest.java
+++ b/plugins/core/src/test/java/org/apache/cxf/fediz/core/federation/FederationResponseTest.java
@@ -75,9 +75,9 @@ import org.apache.wss4j.common.saml.bean.ConditionsBean;
 import org.apache.wss4j.common.saml.builder.SAML1Constants;
 import org.apache.wss4j.common.saml.builder.SAML2Constants;
 import org.apache.wss4j.common.util.DOM2Writer;
-import org.apache.wss4j.common.util.XMLUtils;
 import org.apache.wss4j.dom.WSConstants;
 import org.apache.wss4j.dom.message.WSSecEncrypt;
+import org.apache.wss4j.dom.util.WSSecurityUtil;
 import org.joda.time.DateTime;
 import org.joda.time.DateTimeZone;
 import org.junit.AfterClass;
@@ -928,12 +928,12 @@ public class FederationResponseTest {
         Element token2 = assertion1.toDOM(doc);
         
         // Now modify the first Signature to point to the other Element
-        Element sig1 = XMLUtils.findElement(token1, "Signature", WSConstants.SIG_NS);
-        Element sig2 = XMLUtils.findElement(token2, "Signature", WSConstants.SIG_NS);
+        Element sig1 = WSSecurityUtil.findElement(token1, "Signature", WSConstants.SIG_NS);
+        Element sig2 = WSSecurityUtil.findElement(token2, "Signature", WSConstants.SIG_NS);
         sig1.getParentNode().replaceChild(sig2.cloneNode(true), sig1);
 
         List<Element> requestedTokenElements = 
-            XMLUtils.findElements(doc, "RequestedSecurityToken", FederationConstants.WS_TRUST_13_NS);
+            WSSecurityUtil.findElements(doc, "RequestedSecurityToken", FederationConstants.WS_TRUST_13_NS);
         Assert.assertEquals(2, requestedTokenElements.size());
         requestedTokenElements.get(0).appendChild(token1);
         requestedTokenElements.get(1).appendChild(token2);
@@ -981,7 +981,7 @@ public class FederationResponseTest {
         Element token2 = assertion2.toDOM(doc);
 
         List<Element> requestedTokenElements = 
-            XMLUtils.findElements(doc, "RequestedSecurityToken", FederationConstants.WS_TRUST_13_NS);
+            WSSecurityUtil.findElements(doc, "RequestedSecurityToken", FederationConstants.WS_TRUST_13_NS);
         Assert.assertEquals(2, requestedTokenElements.size());
         requestedTokenElements.get(0).appendChild(token1);
         requestedTokenElements.get(1).appendChild(token2);
@@ -1376,10 +1376,10 @@ public class FederationResponseTest {
         Document doc = STSUtil.toSOAPPart(STSUtil.SAMPLE_RSTR_COLL_MSG);
         Element token = assertion.toDOM(doc);
 
-        Element e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+        Element e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                         FederationConstants.WS_TRUST_13_NS);
         if (e == null) {
-            e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+            e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                     FederationConstants.WS_TRUST_2005_02_NS);
         }
         e.appendChild(token);
@@ -1513,10 +1513,10 @@ public class FederationResponseTest {
         issueDateTime = issueDateTime.plusSeconds(1);
         token.setAttributeNS(null, "IssueInstant", issueDateTime.toString());
 
-        Element e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+        Element e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                        FederationConstants.WS_TRUST_13_NS);
         if (e == null) {
-            e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+            e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                    FederationConstants.WS_TRUST_2005_02_NS);
         }
         e.appendChild(token);
@@ -1587,10 +1587,10 @@ public class FederationResponseTest {
         Document doc = STSUtil.toSOAPPart(STSUtil.SAMPLE_RSTR_COLL_MSG);
         Element token = assertion.toDOM(doc);
 
-        Element e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+        Element e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                         FederationConstants.WS_TRUST_13_NS);
         if (e == null) {
-            e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+            e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                     FederationConstants.WS_TRUST_2005_02_NS);
         }
         e.appendChild(token);
@@ -1633,10 +1633,10 @@ public class FederationResponseTest {
         Document doc = STSUtil.toSOAPPart(rstr);
         Element token = assertion.toDOM(doc);
 
-        Element e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+        Element e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                         FederationConstants.WS_TRUST_13_NS);
         if (e == null) {
-            e = XMLUtils.findElement(doc, "RequestedSecurityToken",
+            e = WSSecurityUtil.findElement(doc, "RequestedSecurityToken",
                                                     FederationConstants.WS_TRUST_2005_02_NS);
         }
         e.appendChild(token);


Mime
View raw message