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

noreply at shibboleth.net noreply at shibboleth.net
Mon Feb 24 05:30:53 EST 2014


Author: rdw
Date: Mon Feb 24 05:30:53 2014
New Revision: 5457

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5457&view=rev
Log:
JSPT-43 Remove identification tests from Action tests

Modified:
    trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/impl/ProfileActionBeanPostProcessorTest.java

Modified: trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/impl/ProfileActionBeanPostProcessorTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/impl/ProfileActionBeanPostProcessorTest.java?rev=5457&r1=5456&r2=5457&view=diff
==============================================================================
--- trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/impl/ProfileActionBeanPostProcessorTest.java (original)
+++ trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/impl/ProfileActionBeanPostProcessorTest.java Mon Feb 24 05:30:53 2014
@@ -19,7 +19,6 @@
 
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 
-import org.opensaml.profile.action.ProfileAction;
 import org.springframework.beans.factory.BeanCreationException;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
@@ -29,26 +28,6 @@
 /** {@link ProfileActionBeanPostProcessor} unit test. */
 @ContextConfiguration({"ProfileActionBeanPostProcessorTest.xml"})
 public class ProfileActionBeanPostProcessorTest extends AbstractTestNGSpringContextTests {
-
-    @Test public void testPostProcessBeforeInitialization() {
-        Object bean = null;
-
-        bean = applicationContext.getBean("IdPActionWithDefaultID");
-        Assert.assertTrue(bean instanceof ProfileAction);
-        Assert.assertEquals(((ProfileAction) bean).getId(), "IdPActionWithDefaultID");
-
-        bean = applicationContext.getBean("IdPActionWithCustomID");
-        Assert.assertTrue(bean instanceof ProfileAction);
-        Assert.assertEquals(((ProfileAction) bean).getId(), "CustomID");
-
-        bean = applicationContext.getBean("OpenSAMLActionWithDefaultID");
-        Assert.assertTrue(bean instanceof ProfileAction);
-        Assert.assertEquals(((ProfileAction) bean).getId(), "OpenSAMLActionWithDefaultID");
-
-        bean = applicationContext.getBean("OpenSAMLActionWithCustomID");
-        Assert.assertTrue(bean instanceof ProfileAction);
-        Assert.assertEquals(((ProfileAction) bean).getId(), "CustomID");
-    }
 
     @Test public void testPostProcessAfterInitialization() {
         Object bean = null;
@@ -81,6 +60,7 @@
     }
 
     public static class MockOpenSAMLExceptionAction extends org.opensaml.profile.action.AbstractProfileAction {
+        @Override
         protected void doInitialize() throws ComponentInitializationException {
             throw new ComponentInitializationException();
         }



More information about the commits mailing list