[java-shib-attribute] branch main updated: Remove more use of Deprecated AttributeContext setters from tests

Codeberg noreply at shibboleth.net
Mon Oct 19 15:54:34 UTC 2026


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

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

View the commit online:
https://codeberg.org/Shibboleth/java-shib-attribute/commit/17903af8cb96762d27b95999f6df786a502d24f2

The following commit(s) were added to refs/heads/main by this push:
     new 17903af8c Remove more use of Deprecated AttributeContext setters from tests
17903af8c is described below

commit 17903af8cb96762d27b95999f6df786a502d24f2
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Oct 19 16:55:00 2026 +0100

    Remove more use of Deprecated AttributeContext setters from tests
---
 .../idp/attribute/filter/context/AttributeFilterWorkContextTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shib-attribute-filter-api/src/test/java/net/shibboleth/idp/attribute/filter/context/AttributeFilterWorkContextTest.java b/shib-attribute-filter-api/src/test/java/net/shibboleth/idp/attribute/filter/context/AttributeFilterWorkContextTest.java
index a070b5b3b..07fcfad8f 100644
--- a/shib-attribute-filter-api/src/test/java/net/shibboleth/idp/attribute/filter/context/AttributeFilterWorkContextTest.java
+++ b/shib-attribute-filter-api/src/test/java/net/shibboleth/idp/attribute/filter/context/AttributeFilterWorkContextTest.java
@@ -54,7 +54,7 @@ public class AttributeFilterWorkContextTest {
         
         final IdPAttribute attribute1 = new IdPAttribute("one");
         attribute1.setValues(Arrays.asList(aStringAttributeValue, bStringAttributeValue));
-        parent.setPrefilteredIdPAttributes(CollectionSupport.singletonList(attribute1));
+        parent.setPrefilteredIdPAttributes(CollectionSupport.singletonMap("one", attribute1));
 
         context.addPermittedIdPAttributeValues("one", CollectionSupport.singletonList(aStringAttributeValue));
         Assert.assertEquals(context.getPermittedIdPAttributeValues().get("one").size(), 1);
@@ -101,7 +101,7 @@ public class AttributeFilterWorkContextTest {
 
         final IdPAttribute attribute1 = new IdPAttribute("one");
         attribute1.setValues(CollectionSupport.listOf(aStringAttributeValue, bStringAttributeValue));
-        parent.setPrefilteredIdPAttributes(CollectionSupport.singletonList(attribute1));
+        parent.setPrefilteredIdPAttributes(CollectionSupport.singletonMap("one", attribute1));
 
         context.addDeniedIdPAttributeValues("one", CollectionSupport.singletonList(aStringAttributeValue));
         assertEquals(context.getDeniedAttributeValues().get("one").size(), 1);

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


More information about the commits mailing list