Class AddResponseTypeAndModeHandlerTest


  • public class AddResponseTypeAndModeHandlerTest
    extends AbstractOIDCTest
    Tests for the AddResponseTypeAndModeHandler action.
    • Field Detail

      • handler

        private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddResponseTypeAndModeHandler handler
        The handler.
      • rpc

        private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
        The relying party context.
      • oidcAuthzConfig

        private net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfiguration oidcAuthzConfig
        The profile config.
    • Constructor Detail

      • AddResponseTypeAndModeHandlerTest

        public AddResponseTypeAndModeHandlerTest()
    • Method Detail

      • testResponseModeOverride

        public void testResponseModeOverride()
                                      throws Exception
        Test the response mode override is added when set.
        Throws:
        Exception - on error
      • testResponseTypeNotSupportedByOP

        public void testResponseTypeNotSupportedByOP()
                                              throws Exception
        Test the unsupported response type (IDTOKEN).
        Throws:
        Exception - on error
      • testResponseModeNotSupportedByOP

        public void testResponseModeNotSupportedByOP()
                                              throws Exception
        Test a response mode that is not supported by the OP.
        Throws:
        Exception - on error
      • testResponseModeDefault

        public void testResponseModeDefault()
                                     throws Exception
        Test a response mode and type that are the default pairing.
        Throws:
        Exception - on error
      • testUnknownResponseType

        public void testUnknownResponseType()
                                     throws Exception
        Test an unknown response type correctly throws an exception.
        Throws:
        Exception - on error