[java-shib-attribute] branch main updated: Add a couple of asserts to a test class to stop null check warnings
Rod Widdowson
rdw at steadingsoftware.com
Mon Dec 12 14:20:41 UTC 2022
This is an automated email from the git hooks/post-receive script.
rdw 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=f9be45c0bb2e846a005c116b5fcb22107cf84720
The following commit(s) were added to refs/heads/main by this push:
new f9be45c0b Add a couple of asserts to a test class to stop null check warnings
f9be45c0b is described below
commit f9be45c0bb2e846a005c116b5fcb22107cf84720
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Dec 12 14:20:32 2022 +0000
Add a couple of asserts to a test class to stop null check warnings
---
.../resolver/spring/dc/ldap/impl/LDAPDataConnectorParserTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/dc/ldap/impl/LDAPDataConnectorParserTest.java b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/dc/ldap/impl/LDAPDataConnectorParserTest.java
index 8496ba76f..224c77058 100644
--- a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/dc/ldap/impl/LDAPDataConnectorParserTest.java
+++ b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/dc/ldap/impl/LDAPDataConnectorParserTest.java
@@ -140,7 +140,9 @@ public class LDAPDataConnectorParserTest {
if (directoryServer.openConnectionCount() > 0) {
Thread.sleep(100);
}
+ assert(directoryServer != null);
assertEquals(directoryServer.openConnectionCount(), 0);
+ assert(directoryServer != null);
directoryServer.stop(true);
}
System.clearProperty("org.ldaptive.sasl.defaultSaslClient");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list