[java-shib-profile] branch main updated: IDP-2069 Null Handling
Rod Widdowson
rdw at steadingsoftware.com
Sat Mar 11 15:51:39 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-shib-profile.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-profile.git;a=commit;h=7c5c34f8bb9105fa0e3d29c49de65c9ededf4850
The following commit(s) were added to refs/heads/main by this push:
new 7c5c34f IDP-2069 Null Handling
7c5c34f is described below
commit 7c5c34f8bb9105fa0e3d29c49de65c9ededf4850
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Mar 11 15:39:33 2023 +0000
IDP-2069 Null Handling
https://shibboleth.atlassian.net/browse/IDP-2069
Eschew the two parameter getSubContext() method
---
.../profile/context/logic/RelyingPartyIdPredicateTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/shib-profile-api/src/test/java/net/shibboleth/profile/context/logic/RelyingPartyIdPredicateTest.java b/shib-profile-api/src/test/java/net/shibboleth/profile/context/logic/RelyingPartyIdPredicateTest.java
index 30cd0ef..b5c39e7 100644
--- a/shib-profile-api/src/test/java/net/shibboleth/profile/context/logic/RelyingPartyIdPredicateTest.java
+++ b/shib-profile-api/src/test/java/net/shibboleth/profile/context/logic/RelyingPartyIdPredicateTest.java
@@ -40,7 +40,7 @@ public class RelyingPartyIdPredicateTest {
@BeforeMethod
public void setUp() {
prc = new ProfileRequestContext();
- rpCtx = prc.getSubcontext(RelyingPartyContext.class, true);
+ rpCtx = prc.getOrCreateSubcontext(RelyingPartyContext.class);
}
@Test
@@ -118,8 +118,7 @@ public class RelyingPartyIdPredicateTest {
private boolean testCandidate(final RelyingPartyIdPredicate rpIdPredicate, final String rpId) {
final ProfileRequestContext prc = new ProfileRequestContext();
- final RelyingPartyContext rpc = prc.getSubcontext(RelyingPartyContext.class, true);
- assert rpc != null;
+ final RelyingPartyContext rpc = prc.getOrCreateSubcontext(RelyingPartyContext.class);
rpc.setRelyingPartyId(rpId);
return rpIdPredicate.test(prc);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list