[java-opensaml] branch main updated: Fix sealing violation in tests.

Scott Cantor cantor.2 at osu.edu
Thu Sep 15 14:21:31 UTC 2022


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=9ef91af9cb5bad33e4d932ca9a17a0d5ff2038f5

The following commit(s) were added to refs/heads/main by this push:
     new 9ef91af9c Fix sealing violation in tests.
9ef91af9c is described below

commit 9ef91af9cb5bad33e4d932ca9a17a0d5ff2038f5
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Sep 15 10:21:28 2022 -0400

    Fix sealing violation in tests.
---
 opensaml-testing/pom.xml                                       |  5 +++++
 .../xmlsec/algorithm/{ => tests}/AlgorithmDescriptorsTest.java | 10 +++++++++-
 .../xmlsec/algorithm/{ => tests}/AlgorithmRegistryTest.java    |  4 +++-
 .../xmlsec/algorithm/{ => tests}/AlgorithmSupportTest.java     |  3 ++-
 4 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/opensaml-testing/pom.xml b/opensaml-testing/pom.xml
index 6bf30a137..2ac7152ca 100644
--- a/opensaml-testing/pom.xml
+++ b/opensaml-testing/pom.xml
@@ -83,6 +83,11 @@
             <artifactId>guava</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.bouncycastle</groupId>
+            <artifactId>bcprov-jdk15on</artifactId>
+        </dependency>
+
         <!-- Provided Dependencies -->
 
         <!-- Runtime Dependencies -->
diff --git a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmDescriptorsTest.java b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmDescriptorsTest.java
similarity index 98%
rename from opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmDescriptorsTest.java
rename to opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmDescriptorsTest.java
index 2bf738c49..a3dff2eb7 100644
--- a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmDescriptorsTest.java
+++ b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmDescriptorsTest.java
@@ -15,9 +15,17 @@
  * limitations under the License.
  */
 
-package org.opensaml.xmlsec.algorithm;
+package org.opensaml.xmlsec.algorithm.tests;
 
 import org.opensaml.security.crypto.JCAConstants;
+import org.opensaml.xmlsec.algorithm.AlgorithmDescriptor;
+import org.opensaml.xmlsec.algorithm.BlockEncryptionAlgorithm;
+import org.opensaml.xmlsec.algorithm.DigestAlgorithm;
+import org.opensaml.xmlsec.algorithm.KeyAgreementAlgorithm;
+import org.opensaml.xmlsec.algorithm.KeyTransportAlgorithm;
+import org.opensaml.xmlsec.algorithm.MACAlgorithm;
+import org.opensaml.xmlsec.algorithm.SignatureAlgorithm;
+import org.opensaml.xmlsec.algorithm.SymmetricKeyWrapAlgorithm;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES128CBC;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES128GCM;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES192CBC;
diff --git a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmRegistryTest.java b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmRegistryTest.java
similarity index 99%
rename from opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmRegistryTest.java
rename to opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmRegistryTest.java
index 588f116c9..85e2eee14 100644
--- a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmRegistryTest.java
+++ b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmRegistryTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.opensaml.xmlsec.algorithm;
+package org.opensaml.xmlsec.algorithm.tests;
 
 import java.util.Objects;
 import java.util.Set;
@@ -25,6 +25,8 @@ import org.opensaml.core.config.InitializationException;
 import org.opensaml.core.testing.OpenSAMLInitBaseTestCase;
 import org.opensaml.security.crypto.JCAConstants;
 import org.opensaml.security.testing.SecurityProviderTestSupport;
+import org.opensaml.xmlsec.algorithm.AlgorithmRegistry;
+import org.opensaml.xmlsec.algorithm.AlgorithmSupport;
 import org.opensaml.xmlsec.algorithm.AlgorithmDescriptor.AlgorithmType;
 import org.opensaml.xmlsec.algorithm.descriptors.DigestSHA256;
 import org.opensaml.xmlsec.algorithm.descriptors.SignatureRSASHA256;
diff --git a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmSupportTest.java b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmSupportTest.java
similarity index 99%
rename from opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmSupportTest.java
rename to opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmSupportTest.java
index a7a048a28..68fa9bdfa 100644
--- a/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/AlgorithmSupportTest.java
+++ b/opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/algorithm/tests/AlgorithmSupportTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.opensaml.xmlsec.algorithm;
+package org.opensaml.xmlsec.algorithm.tests;
 
 import java.security.InvalidAlgorithmParameterException;
 import java.security.Key;
@@ -32,6 +32,7 @@ import org.opensaml.security.credential.Credential;
 import org.opensaml.security.credential.CredentialSupport;
 import org.opensaml.security.crypto.JCAConstants;
 import org.opensaml.security.crypto.KeySupport;
+import org.opensaml.xmlsec.algorithm.AlgorithmSupport;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES128CBC;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES128GCM;
 import org.opensaml.xmlsec.algorithm.descriptors.BlockEncryptionAES192CBC;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list