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 2021/04/19 08:32:04 UTC

[ws-wss4j] branch 2_3_x-fixes updated: Check result size after SAMLTokenSigned processing

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 2_3_x-fixes
in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git


The following commit(s) were added to refs/heads/2_3_x-fixes by this push:
     new f2b6b22  Check result size after SAMLTokenSigned processing
f2b6b22 is described below

commit f2b6b22a160fafcd6e6c4233aaee90c47be9cac9
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Apr 19 09:26:36 2021 +0100

    Check result size after SAMLTokenSigned processing
---
 .../src/test/java/org/apache/wss4j/dom/saml/SamlTokenActionTest.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenActionTest.java b/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenActionTest.java
index dead6ed..c5d9e3c 100644
--- a/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenActionTest.java
+++ b/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenActionTest.java
@@ -49,6 +49,7 @@ import org.apache.wss4j.dom.handler.WSHandlerResult;
 
 import org.junit.jupiter.api.Test;
 
+import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -193,6 +194,7 @@ public class SamlTokenActionTest {
         }
 
         WSHandlerResult results = verify(doc, callbackHandler);
+        assertEquals(2, results.getActionResults().keySet().size());
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.ST_SIGNED).get(0);