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:56:48 UTC
[santuario-xml-security-java] branch main updated: Make all tests pass with Java 21 (#237)
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git
The following commit(s) were added to refs/heads/main by this push:
new 1b7fb6ea Make all tests pass with Java 21 (#237)
1b7fb6ea is described below
commit 1b7fb6ea15a8677f8ab78abc829d4f4b0014252c
Author: Colm O hEigeartaigh <co...@users.noreply.github.com>
AuthorDate: Wed Oct 25 05:56:42 2023 +0100
Make all tests pass with Java 21 (#237)
---
.../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"));
}
}