[java-shib-metadata] branch main updated: Consolidate exception signature on Jetty test class.

Codeberg noreply at shibboleth.net
Mon Aug 3 12:34:46 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-shib-metadata.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-metadata/commit/c3ab18528f9f598750f90417843e8a83708c238c

The following commit(s) were added to refs/heads/main by this push:
     new c3ab1852 Consolidate exception signature on Jetty test class.
c3ab1852 is described below

commit c3ab18528f9f598750f90417843e8a83708c238c
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Aug 3 08:34:33 2026 -0400

    Consolidate exception signature on Jetty test class.
---
 .../net/shibboleth/spring/http/HTTPResourceConfigurationTests.java   | 4 +---
 .../spring/metadata/DynamicHTTPMetadataProviderParserTest.java       | 5 ++---
 .../spring/metadata/FileBackedHTTPMetadataProviderParserTest.java    | 5 ++---
 .../java/net/shibboleth/spring/metadata/MetadataFailFastTest.java    | 4 +---
 4 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/shib-metadata-spring/src/test/java/net/shibboleth/spring/http/HTTPResourceConfigurationTests.java b/shib-metadata-spring/src/test/java/net/shibboleth/spring/http/HTTPResourceConfigurationTests.java
index b304283c..b7a5c298 100644
--- a/shib-metadata-spring/src/test/java/net/shibboleth/spring/http/HTTPResourceConfigurationTests.java
+++ b/shib-metadata-spring/src/test/java/net/shibboleth/spring/http/HTTPResourceConfigurationTests.java
@@ -16,8 +16,6 @@ package net.shibboleth.spring.http;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.SocketException;
-import java.net.UnknownHostException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 
@@ -91,7 +89,7 @@ public class HTTPResourceConfigurationTests {
     }
     
     @BeforeClass
-    public void startJetty() throws UnknownHostException, SocketException {
+    public void startJetty() throws IOException {
         jetty = new EmbeddedJetty();
         jetty.startServer(new EmbeddedJetty.ResourceHandler(200,
                 ResourceHelper.of(new ClassPathResource("net/shibboleth/spring/http/document.xml"))));
diff --git a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/DynamicHTTPMetadataProviderParserTest.java b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/DynamicHTTPMetadataProviderParserTest.java
index f5ff4143..f89d2664 100644
--- a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/DynamicHTTPMetadataProviderParserTest.java
+++ b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/DynamicHTTPMetadataProviderParserTest.java
@@ -14,8 +14,7 @@
 
 package net.shibboleth.spring.metadata;
 
-import java.net.SocketException;
-import java.net.UnknownHostException;
+import java.io.IOException;
 import java.security.MessageDigest;
 import java.security.SecureRandom;
 import java.time.Duration;
@@ -74,7 +73,7 @@ public class DynamicHTTPMetadataProviderParserTest extends AbstractMetadataParse
     private Resource exampleResource; 
     
     @BeforeClass
-    public void startJetty() throws UnknownHostException, SocketException {
+    public void startJetty() throws IOException {
         localhostResource = ResourceHelper.of(new ClassPathResource("net/shibboleth/spring/metadata/localhost-sp.xml"));
         exampleResource = ResourceHelper.of(new ClassPathResource("net/shibboleth/spring/metadata/idp.example.org.xml"));
         
diff --git a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/FileBackedHTTPMetadataProviderParserTest.java b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/FileBackedHTTPMetadataProviderParserTest.java
index f5dd0cc4..39cc864d 100644
--- a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/FileBackedHTTPMetadataProviderParserTest.java
+++ b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/FileBackedHTTPMetadataProviderParserTest.java
@@ -16,8 +16,7 @@ package net.shibboleth.spring.metadata;
 
 import static org.testng.Assert.*;
 
-import java.net.SocketException;
-import java.net.UnknownHostException;
+import java.io.IOException;
 import java.time.Duration;
 import java.util.Iterator;
 import java.util.List;
@@ -53,7 +52,7 @@ public class FileBackedHTTPMetadataProviderParserTest extends AbstractMetadataPa
     private Resource entitiesResource;
     
     @BeforeClass
-    public void startJetty() throws UnknownHostException, SocketException {
+    public void startJetty() throws IOException {
         entityResource = ResourceHelper.of(new ClassPathResource("net/shibboleth/spring/metadata/entity.xml"));
         entitiesResource = ResourceHelper.of(new ClassPathResource("net/shibboleth/spring/metadata/entities.xml"));
         
diff --git a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/MetadataFailFastTest.java b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/MetadataFailFastTest.java
index 634a494c..63c55e28 100644
--- a/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/MetadataFailFastTest.java
+++ b/shib-metadata-spring/src/test/java/net/shibboleth/spring/metadata/MetadataFailFastTest.java
@@ -17,8 +17,6 @@ package net.shibboleth.spring.metadata;
 import static org.testng.Assert.*;
 
 import java.io.IOException;
-import java.net.SocketException;
-import java.net.UnknownHostException;
 import java.util.List;
 
 import javax.annotation.Nonnull;
@@ -58,7 +56,7 @@ public class MetadataFailFastTest extends AbstractFailFastTest {
     private Resource badResource; 
     
     @BeforeClass
-    public void startJetty() throws UnknownHostException, SocketException {
+    public void startJetty() throws IOException {
         goodResource = ResourceHelper.of(new ClassPathResource(getPath() + "metadataFileGood.xml"));
         badResource = ResourceHelper.of(new ClassPathResource(getPath() + "metadataFileBad.xml"));
         

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


More information about the commits mailing list