[java-shib-attribute] branch main updated: Fix tests to accomodate predicate change.

Scott Cantor cantor.2 at osu.edu
Wed Sep 4 20:17:31 UTC 2024


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

scantor pushed a commit to branch main
in repository java-shib-attribute.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-attribute.git;a=commit;h=8c4b2a983fcf8f79024295bc3b8475676443ce6c

The following commit(s) were added to refs/heads/main by this push:
     new 8c4b2a983 Fix tests to accomodate predicate change.
8c4b2a983 is described below

commit 8c4b2a983fcf8f79024295bc3b8475676443ce6c
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 4 16:17:28 2024 -0400

    Fix tests to accomodate predicate change.
---
 .../idp/attribute/resolver/AttributeResolutionLookupTest.java          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/shib-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolutionLookupTest.java b/shib-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolutionLookupTest.java
index c016e2d09..d3a58785a 100644
--- a/shib-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolutionLookupTest.java
+++ b/shib-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolutionLookupTest.java
@@ -18,6 +18,7 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 import net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext;
+import net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext;
 import net.shibboleth.idp.attribute.resolver.context.navigate.AbstractAttributeResolutionLookupFunction;
 
 import org.opensaml.messaging.context.navigate.ParentContextLookup;
@@ -34,6 +35,7 @@ public class AttributeResolutionLookupTest {
     @Test public void apply() {
         final ProfileRequestContext pfc = new ProfileRequestContext();
         final AttributeResolutionContext arc = pfc.ensureSubcontext(AttributeResolutionContext.class);
+        arc.ensureSubcontext(AttributeResolverWorkContext.class);
         assert arc != null;
         arc.setAttributeIssuerID("child");
 
@@ -43,6 +45,7 @@ public class AttributeResolutionLookupTest {
     
     @Test public void applyParent() {
         final AttributeResolutionContext parent = new AttributeResolutionContext();
+        parent.ensureSubcontext(AttributeResolverWorkContext.class);
         final ProfileRequestContext pfc = parent.ensureSubcontext(ProfileRequestContext.class);
         parent.setAttributeIssuerID("parent");
 

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


More information about the commits mailing list