Class AddScopesHandlerTest


  • public class AddScopesHandlerTest
    extends AbstractOIDCTest
    Tests for AddScopesHandler.
    • Field Detail

      • handler

        private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddScopesHandler handler
        The action to test.
      • rpc

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

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

      • AddScopesHandlerTest

        public AddScopesHandlerTest()
    • Method Detail

      • testSuccessWithDefaultScope

        public void testSuccessWithDefaultScope()
                                         throws Exception
        Test default scope is added.
        Throws:
        Exception - on error
      • testSuccess_AddScopes

        public void testSuccess_AddScopes()
                                   throws Exception
        Test additional scopes are added.
        Throws:
        Exception - on error
      • testSuccess_NullScopes

        public void testSuccess_NullScopes()
                                    throws Exception
        Test the default scope is added even if null scopes are set.
        Throws:
        Exception - on error