ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1815207 - /webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java
Date Tue, 14 Nov 2017 11:37:17 GMT
Author: coheigea
Date: Tue Nov 14 11:37:16 2017
New Revision: 1815207

URL: http://svn.apache.org/viewvc?rev=1815207&view=rev
Log:
Fixing test

Modified:
    webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java

Modified: webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java?rev=1815207&r1=1815206&r2=1815207&view=diff
==============================================================================
--- webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java
(original)
+++ webservices/wss4j/branches/2_1_x-fixes/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePartsTest.java
Tue Nov 14 11:37:16 2017
@@ -562,7 +562,7 @@ public class SignaturePartsTest extends
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
 
-        WSSecSignature sign = new WSSecSignature(secHeader);
+        WSSecSignature sign = new WSSecSignature();
         sign.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e", "security");
         sign.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
 
@@ -573,7 +573,7 @@ public class SignaturePartsTest extends
                 "");
         sign.getParts().add(encP);
 
-        Document signedDoc = sign.build(crypto);
+        Document signedDoc = sign.build(doc, crypto, secHeader);
 
         if (LOG.isDebugEnabled()) {
             String outputString =



Mime
View raw message