[java-shib-shared] 05/05: JPAR-234 - Track Spring Framework 7.0

Ian Young ian at iay.org.uk
Thu Oct 16 16:00:44 UTC 2025


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

iay pushed a commit to branch dev/JPAR-234
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=323feff8eb71ffd060f020923c21d5401dad25e6

commit 323feff8eb71ffd060f020923c21d5401dad25e6
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Oct 16 16:58:52 2025 +0100

    JPAR-234 - Track Spring Framework 7.0
    
    Add another getBeanProvider method to MockApplicationContext for 7.0.0-RC1.
    
    https://shibboleth.atlassian.net/browse/JPAR-234
---
 .../java/net/shibboleth/shared/testing/MockApplicationContext.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/shib-testing/src/main/java/net/shibboleth/shared/testing/MockApplicationContext.java b/shib-testing/src/main/java/net/shibboleth/shared/testing/MockApplicationContext.java
index ae33b0f2..0309aa4d 100644
--- a/shib-testing/src/main/java/net/shibboleth/shared/testing/MockApplicationContext.java
+++ b/shib-testing/src/main/java/net/shibboleth/shared/testing/MockApplicationContext.java
@@ -35,6 +35,7 @@ import org.springframework.context.ApplicationListener;
 import org.springframework.context.ConfigurableApplicationContext;
 import org.springframework.context.MessageSourceResolvable;
 import org.springframework.context.NoSuchMessageException;
+import org.springframework.core.ParameterizedTypeReference;
 import org.springframework.core.ResolvableType;
 import org.springframework.core.env.ConfigurableEnvironment;
 import org.springframework.core.io.ProtocolResolver;
@@ -176,6 +177,11 @@ public class MockApplicationContext implements ConfigurableApplicationContext {
         throw new IllegalStateException();
     }
 
+    /** {@inheritDoc} */
+    public <T> ObjectProvider<T> getBeanProvider(ParameterizedTypeReference<T> requiredType) {
+        throw new IllegalStateException();
+    }
+
     /** {@inheritDoc} */
     public boolean containsBean(@Nonnull final String name) {
         throw new IllegalStateException();

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


More information about the commits mailing list