[java-identity-provider] branch master updated: Fix another test using nulls.

Scott Cantor cantor.2 at osu.edu
Mon Oct 28 12:59:14 EDT 2019


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

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=2df4a9b9ed0c4bf44419ef9f66f52ef51529e5c1

The following commit(s) were added to refs/heads/master by this push:
       new  2df4a9b   Fix another test using nulls.
2df4a9b is described below

commit 2df4a9b9ed0c4bf44419ef9f66f52ef51529e5c1
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Oct 28 12:59:09 2019 -0400

    Fix another test using nulls.
---
 .../idp/attribute/resolver/AttributeResolverContextTest.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/idp-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolverContextTest.java b/idp-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolverContextTest.java
index 0808305..eccf136 100644
--- a/idp-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolverContextTest.java
+++ b/idp-attribute-resolver-api/src/test/java/net/shibboleth/idp/attribute/resolver/AttributeResolverContextTest.java
@@ -17,6 +17,7 @@
 
 package net.shibboleth.idp.attribute.resolver;
 
+import java.util.Arrays;
 import java.util.Collections;
 
 import net.shibboleth.idp.attribute.IdPAttribute;
@@ -24,7 +25,6 @@ import net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext;
 
 import org.testng.Assert;
 import org.testng.annotations.Test;
-import org.testng.collections.Lists;
 
 /** Unit test for {@link AttributeResolutionContext}. */
 
@@ -50,7 +50,7 @@ public class AttributeResolverContextTest {
         Assert.assertEquals(context.getResolvedIdPAttributes().size(), 1);
         Assert.assertSame(context.getResolvedIdPAttributes().values().iterator().next(), attr);
                 
-        context.setRequestedIdPAttributeNames(Lists.newArrayList("Foo", null, "bar"));
+        context.setRequestedIdPAttributeNames(Arrays.asList("Foo", "bar"));
         Assert.assertEquals(context.getRequestedIdPAttributeNames().size(), 2);
         Assert.assertTrue(context.getRequestedIdPAttributeNames().contains("Foo"));
         Assert.assertTrue(context.getRequestedIdPAttributeNames().contains("bar"));

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


More information about the commits mailing list