[java-plugin-shibd-oidc] 03/04: Minor test class improvements
Codeberg
noreply at shibboleth.net
Wed May 6 15:47:30 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-plugin-shibd-oidc.
View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-oidc/commit/8f0812362e16afcd6b3618389516583e4fe38d6c
commit 8f0812362e16afcd6b3618389516583e4fe38d6c
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed May 6 11:48:16 2026 +0100
Minor test class improvements
---
.../OIDCTokenConsumerFlowUsingStorageServiceTest.java | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/OIDCTokenConsumerFlowUsingStorageServiceTest.java b/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/OIDCTokenConsumerFlowUsingStorageServiceTest.java
index 2a60bd8..8c124ae 100644
--- a/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/OIDCTokenConsumerFlowUsingStorageServiceTest.java
+++ b/sp-oidc-conf-impl/src/test/java/net/shibboleth/sp/oidc/flows/OIDCTokenConsumerFlowUsingStorageServiceTest.java
@@ -22,6 +22,8 @@ import java.time.Duration;
import java.time.Instant;
import org.opensaml.storage.StorageService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.web.WebAppConfiguration;
@@ -68,6 +70,13 @@ import net.shibboleth.sp.state.impl.StorageServiceStateManager;
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
public class OIDCTokenConsumerFlowUsingStorageServiceTest extends AbstractOIDCTokenConsumerFlowTest {
+ @Autowired
+ @Qualifier("shibboleth.StorageService")
+ private StorageService storageService;
+
+ @Autowired
+ @Qualifier("shibboleth.JSONObjectMapper")
+ private ObjectMapper om;
/** Constructor. */
public OIDCTokenConsumerFlowUsingStorageServiceTest() {
@@ -84,12 +93,6 @@ public class OIDCTokenConsumerFlowUsingStorageServiceTest extends AbstractOIDCTo
public void beforeMethod() throws Exception{
super.beforeMethod();
- // Grab the storage service being using
- final StorageService storageService =
- applicationContext.getBean("shibboleth.StorageService", StorageService.class);
- final ObjectMapper om = applicationContext.getBean("shibboleth.JSONObjectMapper", ObjectMapper.class);
-
-
assertNotNull(storageService, "StorageService bean could not be accessed");
assertNotNull(om, "JSONObjectMapper bean could not be accessed");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list