ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1150358 - /webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java
Date Sun, 24 Jul 2011 13:34:04 GMT
Author: coheigea
Date: Sun Jul 24 13:34:03 2011
New Revision: 1150358

URL: http://svn.apache.org/viewvc?rev=1150358&view=rev
Log:
Adding an assertion for the previous commit.

Modified:
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java?rev=1150358&r1=1150357&r2=1150358&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java Sun
Jul 24 13:34:03 2011
@@ -617,12 +617,13 @@ public class SamlTokenTest extends org.j
         
         Document unsignedDoc = wsSign.build(doc, assertion, secHeader);
 
+        String outputString = 
+            org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(unsignedDoc);
         if (LOG.isDebugEnabled()) {
             LOG.debug("SAML 1.1 Authz Assertion (sender vouches):");
-            String outputString = 
-                org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(unsignedDoc);
             LOG.debug(outputString);
         }
+        assertTrue(outputString.contains("http://resource.org"));
         
         List<WSSecurityEngineResult> results = verify(unsignedDoc);
         WSSecurityEngineResult actionResult =



Mime
View raw message