You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2011/07/25 16:03:43 UTC

svn commit: r1150707 - /webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java

Author: coheigea
Date: Mon Jul 25 14:03:43 2011
New Revision: 1150707

URL: http://svn.apache.org/viewvc?rev=1150707&view=rev
Log:
Potential fix for sporadic test failure.

Modified:
    webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java

Modified: webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java?rev=1150707&r1=1150706&r2=1150707&view=diff
==============================================================================
--- webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java (original)
+++ webservices/wss4j/branches/1_5_x-fixes/test/wssec/TestWSSecurityUTDK.java Mon Jul 25 14:03:43 2011
@@ -78,7 +78,6 @@ public class TestWSSecurityUTDK extends 
         +   "</SOAP-ENV:Body>" 
         + "</SOAP-ENV:Envelope>";
 
-    private WSSecurityEngine secEngine = new WSSecurityEngine();
     private Crypto crypto = CryptoFactory.getInstance();
     private MessageContext msgContext;
     private SOAPEnvelope unsignedEnvelope;
@@ -575,6 +574,7 @@ public class TestWSSecurityUTDK extends 
      * @throws java.lang.Exception Thrown when there is a problem in verification
      */
     private Vector verify(Document doc) throws Exception {
+        WSSecurityEngine secEngine = new WSSecurityEngine();
         return secEngine.processSecurityHeader(doc, null, this, crypto);
     }