[java-identity-provider] branch main updated: Fix some red in tests.

Scott Cantor cantor.2 at osu.edu
Thu Mar 16 14:02:51 UTC 2023


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

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

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

The following commit(s) were added to refs/heads/main by this push:
     new ab58e517c Fix some red in tests.
ab58e517c is described below

commit ab58e517cf716cc1e4ba3a6235a0cb85e9f00802
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Mar 16 10:02:47 2023 -0400

    Fix some red in tests.
---
 .../saml/saml1/profile/impl/AddAttributeStatementToAssertionTest.java   | 2 ++
 .../saml/saml2/profile/impl/AddAttributeStatementToAssertionTest.java   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml1/profile/impl/AddAttributeStatementToAssertionTest.java b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml1/profile/impl/AddAttributeStatementToAssertionTest.java
index 0f466ccf6..bac8d4ee9 100644
--- a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml1/profile/impl/AddAttributeStatementToAssertionTest.java
+++ b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml1/profile/impl/AddAttributeStatementToAssertionTest.java
@@ -446,6 +446,8 @@ public class AddAttributeStatementToAssertionTest extends OpenSAMLInitBaseTestCa
                 Assert.assertEquals(samlAttr.getAttributeValues().size(), 2);
                 final String val1 = ((XSStringImpl) samlAttr.getAttributeValues().get(0)).getValue();
                 final String val2 = ((XSStringImpl) samlAttr.getAttributeValues().get(1)).getValue();
+                assert val1 != null;
+                assert val2 != null;
                 if (val1.equals(MY_VALUE_1)) {
                     Assert.assertEquals(val2, MY_VALUE_2);
                     two = true;
diff --git a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml2/profile/impl/AddAttributeStatementToAssertionTest.java b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml2/profile/impl/AddAttributeStatementToAssertionTest.java
index 9a2704c00..291bdaffa 100644
--- a/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml2/profile/impl/AddAttributeStatementToAssertionTest.java
+++ b/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/saml2/profile/impl/AddAttributeStatementToAssertionTest.java
@@ -450,6 +450,8 @@ public class AddAttributeStatementToAssertionTest extends OpenSAMLInitBaseTestCa
                 Assert.assertEquals(samlAttr.getAttributeValues().size(), 2);
                 final String val1 = ((XSStringImpl) samlAttr.getAttributeValues().get(0)).getValue();
                 final String val2 = ((XSStringImpl) samlAttr.getAttributeValues().get(1)).getValue();
+                assert val1 != null;
+                assert val2 != null;
                 if (val1.equals(MY_VALUE_1)) {
                     Assert.assertEquals(val2, MY_VALUE_2);
                     two = true;

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


More information about the commits mailing list