Class AddScopesHandlerTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddScopesHandlerTest
-
public class AddScopesHandlerTest extends AbstractOIDCTest
Tests forAddScopesHandler.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddScopesHandlerhandlerThe action to test.private net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfigurationoidcAuthzConfigThe profile config.private net.shibboleth.idp.profile.context.RelyingPartyContextrpcThe RPC.-
Fields inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
ac, ACCESS_TOKEN_RESPONSE, ACCESS_TOKEN_RESPONSE_NO_ACCESSTOKEN, ACCESS_TOKEN_RESPONSE_NO_IDTOKEN, authnRequest, CLIENT_METADATA, GOOD_PROVIDER_CONFIGURATION_INFO, partyConfig, peerEntityCtx, prc, providerCtx, rootPrc, src, TOKEN_RESPONSE_ERROR, USERINFO_RESPONSE, USERINFO_RESPONSE_JWE, USERINFO_RESPONSE_JWS
-
-
Constructor Summary
Constructors Constructor Description AddScopesHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestSuccess_AddScopes()Test additional scopes are added.voidtestSuccess_NullScopes()Test the default scope is added even if null scopes are set.voidtestSuccessWithDefaultScope()Test default scope is added.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
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.
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testSuccessWithDefaultScope
public void testSuccessWithDefaultScope() throws ExceptionTest default scope is added.- Throws:
Exception- on error
-
testSuccess_AddScopes
public void testSuccess_AddScopes() throws ExceptionTest additional scopes are added.- Throws:
Exception- on error
-
-