[java-identity-provider] branch main updated: Clean up exception specifier in test class.

Scott Cantor cantor.2 at osu.edu
Wed Dec 15 16:27:24 UTC 2021


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=e4b6bb54dab5a3a41eb161d132eab8cefeb632a3

The following commit(s) were added to refs/heads/main by this push:
     new e4b6bb54d Clean up exception specifier in test class.
e4b6bb54d is described below

commit e4b6bb54dab5a3a41eb161d132eab8cefeb632a3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Dec 15 11:27:21 2021 -0500

    Clean up exception specifier in test class.
---
 .../idp/authn/impl/BaseMultiFactorAuthenticationContextTest.java     | 5 +++--
 .../idp/authn/impl/FinalizeMultiFactorAuthenticationTest.java        | 2 +-
 .../idp/authn/impl/TransitionMultiFactorAuthenticationTest.java      | 3 ++-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/BaseMultiFactorAuthenticationContextTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/BaseMultiFactorAuthenticationContextTest.java
index 28442f509..77ca48e57 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/BaseMultiFactorAuthenticationContextTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/BaseMultiFactorAuthenticationContextTest.java
@@ -24,6 +24,7 @@ import net.shibboleth.idp.authn.context.MultiFactorAuthenticationContext;
 import net.shibboleth.idp.profile.context.navigate.WebflowRequestContextProfileRequestContextLookup;
 import net.shibboleth.idp.profile.testing.ActionTestingSupport;
 import net.shibboleth.idp.profile.testing.RequestContextBuilder;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 import net.shibboleth.utilities.java.support.logic.FunctionSupport;
 
 import java.util.Collections;
@@ -45,7 +46,7 @@ public class BaseMultiFactorAuthenticationContextTest {
     protected MultiFactorAuthenticationContext mfa;
     protected ImmutableMap<String,AuthenticationFlowDescriptor> authenticationFlows;
 
-    protected void initializeMembers() throws Exception {
+    protected void initializeMembers() throws ComponentInitializationException {
         src = new RequestContextBuilder().buildRequestContext();
         prc = new WebflowRequestContextProfileRequestContextLookup().apply(src);
         ac = (AuthenticationContext) prc.addSubcontext(new AuthenticationContext(), true);
@@ -80,7 +81,7 @@ public class BaseMultiFactorAuthenticationContextTest {
         authenticationFlows = builder.build();
     }
 
-    protected void setUp() throws Exception {        
+    protected void setUp() throws ComponentInitializationException {        
         initializeMembers();
         
         final PopulateAuthenticationContext action = new PopulateAuthenticationContext();
diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthenticationTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthenticationTest.java
index 37c696158..7a944bc27 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthenticationTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthenticationTest.java
@@ -41,7 +41,7 @@ public class FinalizeMultiFactorAuthenticationTest extends BaseMultiFactorAuthen
     
     private FinalizeMultiFactorAuthentication action;
     
-    @BeforeMethod public void setUp() throws Exception {
+    @BeforeMethod public void setUp() throws ComponentInitializationException {
         super.setUp();
         final Subject subject = new Subject();
         subject.getPrincipals().add(new UsernamePrincipal("foo"));
diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/TransitionMultiFactorAuthenticationTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/TransitionMultiFactorAuthenticationTest.java
index 7cb7e2a63..e14a9bcfe 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/TransitionMultiFactorAuthenticationTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/TransitionMultiFactorAuthenticationTest.java
@@ -25,13 +25,14 @@ import org.testng.annotations.Test;
 import net.shibboleth.idp.authn.AuthenticationResult;
 import net.shibboleth.idp.authn.principal.UsernamePrincipal;
 import net.shibboleth.idp.profile.testing.ActionTestingSupport;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 
 /** {@link TransitionMultiFactorAuthentication} unit test. */
 public class TransitionMultiFactorAuthenticationTest extends BaseMultiFactorAuthenticationContextTest {
     
     private TransitionMultiFactorAuthentication action; 
     
-    @BeforeMethod public void setUp() throws Exception {
+    @BeforeMethod public void setUp() throws ComponentInitializationException {
         super.setUp();
         
         action = new TransitionMultiFactorAuthentication();

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


More information about the commits mailing list