Class InitializeRequestedPrincipalContextTest


  • public class InitializeRequestedPrincipalContextTest
    extends Object
    InitializeRequestedPrincipalContext unit test.
    • Field Detail

      • prc

        private org.opensaml.profile.context.ProfileRequestContext prc
      • action

        private net.shibboleth.idp.authn.impl.InitializeRequestedPrincipalContext action
    • Constructor Detail

      • InitializeRequestedPrincipalContextTest

        public InitializeRequestedPrincipalContextTest()
    • Method Detail

      • setUp

        @BeforeMethod
        public void setUp()
                   throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException
      • testNoReplace

        public void testNoReplace()
                           throws Exception
        Test that the action bails if set not to replace.
        Throws:
        Exception - if something goes wrong
      • testNoRelyingPartyContext

        public void testNoRelyingPartyContext()
                                       throws Exception
        Test that the action errors out properly if there is no relying party context.
        Throws:
        Exception - if something goes wrong
      • testNoProfileConfiguration

        public void testNoProfileConfiguration()
                                        throws Exception
        Test that the action errors out properly if there is no relying party configuration.
        Throws:
        Exception - if something goes wrong
      • testInvalidProfileConfiguration

        public void testInvalidProfileConfiguration()
                                             throws Exception
        Test that the action errors out properly if the desired profile configuration is not configured.
        Throws:
        Exception - if something goes wrong
      • testNoMethods

        public void testNoMethods()
                           throws Exception
        Test that the action works with no methods supplied.
        Throws:
        Exception - if something goes wrong
      • testWithMethods

        public void testWithMethods()
                             throws Exception
        Test that the action works with methods supplied.
        Throws:
        Exception - if something goes wrong