[java-identity-provider COMMIT] /trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileAction...

noreply at shibboleth.net noreply at shibboleth.net
Wed Apr 16 17:54:10 EDT 2014


Author: scantor
Date: Wed Apr 16 17:54:10 2014
New Revision: 5734

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5734&view=rev
Log:
Missed a test.

Modified:
    trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileActionTest.java

Modified: trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileActionTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileActionTest.java?rev=5734&r1=5733&r2=5734&view=diff
==============================================================================
--- trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileActionTest.java (original)
+++ trunk/idp-profile-api/src/test/java/net/shibboleth/idp/profile/AbstractProfileActionTest.java Wed Apr 16 17:54:10 2014
@@ -22,7 +22,6 @@
 import net.shibboleth.utilities.java.support.component.UnmodifiableComponentException;
 import net.shibboleth.utilities.java.support.logic.ConstraintViolationException;
 
-import org.opensaml.profile.ProfileException;
 import org.opensaml.profile.context.PreviousEventContext;
 import org.opensaml.profile.context.ProfileRequestContext;
 import org.springframework.webflow.execution.Event;
@@ -84,17 +83,17 @@
         Assert.assertTrue(action.isExecuted());
         ActionTestingSupport.assertProceedEvent(result);
 
-        action = new MockProfileAction(new ProfileException());
+        action = new MockProfileAction(new RuntimeException());
         action.initialize();
 
         try {
             action.execute(springRequestContext);
             Assert.fail();
-        } catch (ProfileException e) {
+        } catch (RuntimeException e) {
             // expected this
         }
 
-        action = new MockProfileAction(new ProfileException());
+        action = new MockProfileAction(new RuntimeException());
 
         try {
             action.execute(springRequestContext);
@@ -133,7 +132,7 @@
 
         private final String newEvent;
         private final String prevEvent;
-        private final ProfileException thrownException;
+        private final RuntimeException thrownException;
         private boolean executed;
 
         public MockProfileAction() {
@@ -143,7 +142,7 @@
             setId("test");
         }
         
-        public MockProfileAction(ProfileException exception) {
+        public MockProfileAction(RuntimeException exception) {
             thrownException = exception;
             newEvent = null;
             prevEvent = null;



More information about the commits mailing list