[java-shib-shared] branch main updated: Update mock for Spring Framework 6.0.0-RC4

Ian Young ian at iay.org.uk
Thu Nov 10 16:28:48 UTC 2022


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

iay pushed a commit to branch main
in repository java-shib-shared.

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

The following commit(s) were added to refs/heads/main by this push:
     new 35d202f3 Update mock for Spring Framework 6.0.0-RC4
35d202f3 is described below

commit 35d202f30228783bdffb8261a417fbcda3b42030
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Nov 10 16:28:40 2022 +0000

    Update mock for Spring Framework 6.0.0-RC4
---
 .../net/shibboleth/shared/testing/MockApplicationContext.java     | 8 ++++++++
 1 file changed, 8 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 97a5b387..b392a53a 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
@@ -21,6 +21,7 @@ import java.io.IOException;
 import java.lang.annotation.Annotation;
 import java.util.Locale;
 import java.util.Map;
+import java.util.Set;
 
 import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.BeanFactory;
@@ -367,4 +368,11 @@ public class MockApplicationContext implements ConfigurableApplicationContext {
     public void removeApplicationListener(ApplicationListener<?> listener) {
         throw new IllegalStateException();
     }
+
+    /** {@inheritDoc} */
+    @Override
+    public <A extends Annotation> Set<A> findAllAnnotationsOnBean(String beanName, Class<A> annotationType,
+            boolean allowFactoryBeanInit) throws NoSuchBeanDefinitionException {
+        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