You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2023/10/25 04:44:00 UTC

[santuario-xml-security-java] 01/01: Make all tests pass with Java 21

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

coheigea pushed a commit to branch coheigea/java-21
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git

commit ad382eceddd3dc430ef47da6673177e5d921e983
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Oct 25 05:43:41 2023 +0100

    Make all tests pass with Java 21
---
 .../apache/xml/security/test/stax/encryption/XMLEncryption11Test.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java b/src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java
index 8f5a8f6e..bb2f5013 100644
--- a/src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java
+++ b/src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java
@@ -417,7 +417,7 @@ class XMLEncryption11Test {
             assertTrue(e.getCause() instanceof IOException);
             assertTrue(e.getCause().getCause() instanceof BadPaddingException);
             String cause = e.getCause().getCause().getMessage();
-            assertTrue("mac check in GCM failed".equals(cause) || "Tag mismatch!".equals(cause));
+            assertTrue("mac check in GCM failed".equals(cause) || cause.contains("Tag mismatch"));
         }
     }