[java-shib-attribute] 04/11: Fix tests to accomodate predicate change.

Scott Cantor cantor.2 at osu.edu
Mon Mar 17 13:58:49 UTC 2025


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

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

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

commit 9d529ec4cd9078e48fe1f13eaae96846c40d08ba
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