[java-oidfed-common] branch main updated: Create a specific module for testing support (oidfed-common-testing).
Codeberg
noreply at shibboleth.net
Wed Sep 16 15:36:52 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidfed-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidfed-common/commit/95c4fd7c25cb5897fbff7625673c83030763db75
The following commit(s) were added to refs/heads/main by this push:
new 95c4fd7 Create a specific module for testing support (oidfed-common-testing).
95c4fd7 is described below
commit 95c4fd7c25cb5897fbff7625673c83030763db75
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Wed Sep 16 18:27:42 2026 +0300
Create a specific module for testing support (oidfed-common-testing).
- Start by moving the TrustChainTestUtil from oidfed-common-conf-impl
---
oidfed-common-bom/pom.xml | 7 +-
oidfed-common-conf-impl/pom.xml | 5 ++
.../oidfed/flow/AbstractFederationFlowTest.java | 2 +-
.../oidfed/flow/EntityConfigurationFlowTest.java | 2 +-
.../flow/TestTrustChainResolutionFlowTest.java | 2 +-
.../EntityConfigurationMetadataCacheTest.java | 2 +-
.../flow/cache/SignedKeysetMetadataCacheTest.java | 2 +-
.../SubordinateStatementMetadataCacheTest.java | 2 +-
.../flow/cache/TrustChainMetadataCacheTest.java | 2 +-
oidfed-common-testing/pom.xml | 93 ++++++++++++++++++++++
.../oidfed/testing}/TrustChainTestUtil.java | 2 +-
pom.xml | 16 ++--
12 files changed, 123 insertions(+), 14 deletions(-)
diff --git a/oidfed-common-bom/pom.xml b/oidfed-common-bom/pom.xml
index baf18db..1984fbc 100644
--- a/oidfed-common-bom/pom.xml
+++ b/oidfed-common-bom/pom.xml
@@ -25,7 +25,12 @@
<groupId>${project.groupId}</groupId>
<artifactId>oidfed-common-conf-impl</artifactId>
<version>${project.version}</version>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>oidfed-common-testing</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>oidfed-common-impl</artifactId>
diff --git a/oidfed-common-conf-impl/pom.xml b/oidfed-common-conf-impl/pom.xml
index 8f7eb07..cc3d193 100644
--- a/oidfed-common-conf-impl/pom.xml
+++ b/oidfed-common-conf-impl/pom.xml
@@ -321,6 +321,11 @@
<scope>provided</scope>
</dependency>
<!-- Test dependencies -->
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>oidfed-common-testing</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>${oidc-common.groupId}</groupId>
<artifactId>oidc-common-crypto-impl</artifactId>
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/AbstractFederationFlowTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/AbstractFederationFlowTest.java
index 486b78b..8bec152 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/AbstractFederationFlowTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/AbstractFederationFlowTest.java
@@ -86,7 +86,7 @@ import net.shibboleth.idp.test.flows.AbstractFlowTest;
import net.shibboleth.oidc.security.credential.BasicJWKCredential;
import net.shibboleth.oidc.security.credential.BasicJWKCredentialFactoryBean;
import net.shibboleth.oidfed.metadata.EntityStatement;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.logic.Constraint;
import net.shibboleth.shared.servlet.impl.HttpServletRequestResponseContext;
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/EntityConfigurationFlowTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/EntityConfigurationFlowTest.java
index 06f063a..45ee918 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/EntityConfigurationFlowTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/EntityConfigurationFlowTest.java
@@ -43,7 +43,7 @@ import net.shibboleth.oidfed.metadata.cache.trustmark.DefaultTrustMarkFetchingSt
import net.shibboleth.oidfed.metadata.impl.EntityConfigurationImpl;
import net.shibboleth.oidfed.metadata.payload.EntityConfigurationPayload;
import net.shibboleth.oidfed.metadata.payload.claim.Metadata;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.collection.CollectionSupport;
/**
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/TestTrustChainResolutionFlowTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/TestTrustChainResolutionFlowTest.java
index eccc979..0555504 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/TestTrustChainResolutionFlowTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/TestTrustChainResolutionFlowTest.java
@@ -36,7 +36,7 @@ import com.nimbusds.jose.JWSAlgorithm;
import com.nimbusds.jose.jwk.JWKSet;
import com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.collection.CollectionSupport;
/**
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/EntityConfigurationMetadataCacheTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/EntityConfigurationMetadataCacheTest.java
index 5b2d6ac..bd74689 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/EntityConfigurationMetadataCacheTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/EntityConfigurationMetadataCacheTest.java
@@ -56,7 +56,7 @@ import net.shibboleth.oidfed.metadata.EntityConfiguration;
import net.shibboleth.oidfed.metadata.cache.ResponseContainerExpirationCriterion;
import net.shibboleth.oidfed.metadata.cache.SubjectEntityIDCriterion;
import net.shibboleth.oidfed.metadata.cache.configuration.EntityConfigurationContainer;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.collection.CollectionSupport;
import net.shibboleth.shared.resolver.CriteriaSet;
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SignedKeysetMetadataCacheTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SignedKeysetMetadataCacheTest.java
index f1e05d6..10b1a59 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SignedKeysetMetadataCacheTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SignedKeysetMetadataCacheTest.java
@@ -43,7 +43,7 @@ import net.shibboleth.oidfed.metadata.SignedKeyset;
import net.shibboleth.oidfed.metadata.cache.SubjectEntityStatementCriterion;
import net.shibboleth.oidfed.metadata.cache.keyset.SignedKeysetContainer;
import net.shibboleth.oidfed.metadata.cache.keyset.SubjectSignedKeysetUriCriterion;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.resolver.CriteriaSet;
/**
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SubordinateStatementMetadataCacheTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SubordinateStatementMetadataCacheTest.java
index 6a37b8e..4f1f0ec 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SubordinateStatementMetadataCacheTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/SubordinateStatementMetadataCacheTest.java
@@ -58,7 +58,7 @@ import net.shibboleth.oidfed.metadata.cache.IssuerEntityIDCriterion;
import net.shibboleth.oidfed.metadata.cache.ResponseContainerExpirationCriterion;
import net.shibboleth.oidfed.metadata.cache.SubjectEntityIDCriterion;
import net.shibboleth.oidfed.metadata.cache.subordinate.SubordinateStatementContainer;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.resolver.CriteriaSet;
/**
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/TrustChainMetadataCacheTest.java b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/TrustChainMetadataCacheTest.java
index 309df0a..a004bfa 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/TrustChainMetadataCacheTest.java
+++ b/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/flow/cache/TrustChainMetadataCacheTest.java
@@ -39,7 +39,7 @@ import net.shibboleth.oidfed.metadata.cache.IssuerEntityIDCriterion;
import net.shibboleth.oidfed.metadata.cache.ResponseContainerExpirationCriterion;
import net.shibboleth.oidfed.metadata.cache.SubjectEntityIDCriterion;
import net.shibboleth.oidfed.metadata.cache.trustchain.TrustChainsContainer;
-import net.shibboleth.oidfed.test.TrustChainTestUtil;
+import net.shibboleth.oidfed.testing.TrustChainTestUtil;
import net.shibboleth.shared.resolver.CriteriaSet;
/**
diff --git a/oidfed-common-testing/pom.xml b/oidfed-common-testing/pom.xml
new file mode 100644
index 0000000..72f8c5c
--- /dev/null
+++ b/oidfed-common-testing/pom.xml
@@ -0,0 +1,93 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>net.shibboleth.oidfed</groupId>
+ <artifactId>oidfed-common-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>oidfed-common-testing</artifactId>
+ <packaging>jar</packaging>
+ <name>Shibboleth IdP :: Plugins :: OpenID Federation Common Library :: Testing APIs</name>
+ <description>Testing APIs for the Shibboleth OIDFed Java common library</description>
+
+ <properties>
+ <checkstyle.configLocation>${project.basedir}/../resources/checkstyle/checkstyle.xml</checkstyle.configLocation>
+ <automatic.module.name>net.shibboleth.oidfed.impl</automatic.module.name>
+ </properties>
+
+ <dependencies>
+ <!-- Normally test scope. -->
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- Provided dependencies -->
+ <dependency>
+ <groupId>${oidfed-common.groupId}</groupId>
+ <artifactId>oidfed-common-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${oidfed-common.groupId}</groupId>
+ <artifactId>oidfed-common-impl</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${oidc-common.groupId}</groupId>
+ <artifactId>oidc-common-crypto-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${oidc-common.groupId}</groupId>
+ <artifactId>oidc-common-crypto-impl</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${oidc-common.groupId}</groupId>
+ <artifactId>oidc-common-metadata-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${oidc-common.groupId}</groupId>
+ <artifactId>oidc-common-metadata-impl</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>${shib-shared.groupId}</groupId>
+ <artifactId>shib-support</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.nimbusds</groupId>
+ <artifactId>content-type</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.nimbusds</groupId>
+ <artifactId>nimbus-jose-jwt</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>jakarta.servlet</groupId>
+ <artifactId>jakarta.servlet-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/test/TrustChainTestUtil.java b/oidfed-common-testing/src/main/java/net/shibboleth/oidfed/testing/TrustChainTestUtil.java
similarity index 99%
rename from oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/test/TrustChainTestUtil.java
rename to oidfed-common-testing/src/main/java/net/shibboleth/oidfed/testing/TrustChainTestUtil.java
index 833f26f..587fa8b 100644
--- a/oidfed-common-conf-impl/src/test/java/net/shibboleth/oidfed/test/TrustChainTestUtil.java
+++ b/oidfed-common-testing/src/main/java/net/shibboleth/oidfed/testing/TrustChainTestUtil.java
@@ -12,7 +12,7 @@
* limitations under the License.
*/
-package net.shibboleth.oidfed.test;
+package net.shibboleth.oidfed.testing;
import java.text.ParseException;
import java.time.Instant;
diff --git a/pom.xml b/pom.xml
index 68ee53f..a9c8551 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,6 +44,7 @@
<module>oidfed-common-api</module>
<module>oidfed-common-impl</module>
<module>oidfed-common-conf-impl</module>
+ <module>oidfed-common-testing</module>
<module>oidfed-common-bom</module>
<module>oidfed-common-dist</module>
</modules>
@@ -74,23 +75,28 @@
<dependencyManagement>
<!-- java-oidfed-common project dependencies -->
<dependencies>
- <dependency>
+ <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>oidfed-common-api</artifactId>
<version>${project.version}</version>
- </dependency>
- <dependency>
+ </dependency>
+ <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>oidfed-common-conf-impl</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
+ <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>oidfed-common-impl</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>oidfed-common-testing</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<!-- OIDC Shared config, which is a runtime dependency to the whole project -->
- <dependency>
+ <dependency>
<groupId>${oidc-config.groupId}</groupId>
<artifactId>idp-plugin-oidc-config-impl</artifactId>
<version>${oidc-config.version}</version>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list