[java-identity-provider] branch main updated: Fix failing test.

Scott Cantor cantor.2 at osu.edu
Fri Sep 11 18:58:30 UTC 2020


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=33c8cdcae67968014c881cbe306a4961bb619062

The following commit(s) were added to refs/heads/main by this push:
       new  33c8cdcae Fix failing test.
33c8cdcae is described below

commit 33c8cdcae67968014c881cbe306a4961bb619062
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Sep 11 14:58:22 2020 -0400

    Fix failing test.
---
 .../idp/authn/spnego/impl/KerberosSettingsTest.java   | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/spnego/impl/KerberosSettingsTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/spnego/impl/KerberosSettingsTest.java
index 059f5500c..66b6237e0 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/spnego/impl/KerberosSettingsTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/spnego/impl/KerberosSettingsTest.java
@@ -22,12 +22,11 @@ import static org.testng.Assert.assertEquals;
 import java.util.ArrayList;
 import java.util.List;
 
-import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
-import net.shibboleth.utilities.java.support.logic.ConstraintViolationException;
-
 import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.Test;
 
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
+
 public class KerberosSettingsTest {
 
     protected static String SERVICE_PRINCIPAL = "HTTP/aai-logon.domain_a.com at DOMAIN_A.COM";
@@ -51,22 +50,10 @@ public class KerberosSettingsTest {
     }
 
     @Test
-    public void testRequiredValues() throws ComponentInitializationException {
+    public void testRequiredValues() {
         settings.setRealms(realms);
 
-        settings.initialize();
-
         assertEquals(settings.getRealms(), realms);
     }
-
-    @Test(expectedExceptions = ComponentInitializationException.class)
-    public void withoutMandatoryParameters_initialize_shouldThrowException() throws ComponentInitializationException {
-        settings.initialize();
-    }
-
-    @Test(expectedExceptions = ConstraintViolationException.class)
-    public void nullRealms_shouldThrowException() {
-        settings.setRealms(null);
-    }
     
 }
\ No newline at end of file

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


More information about the commits mailing list