Class SetConsentToResponseContextTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.SetConsentToResponseContextTest
-
public class SetConsentToResponseContextTest extends BaseOIDCResponseActionTest
SetConsentToResponseContextunit test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
BaseOIDCResponseActionTest.MockRevocationCache
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.profile.impl.SetConsentToResponseContextactionprivate net.shibboleth.idp.attribute.context.AttributeContextattributeCtx-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
clientId, credentialEC256, credentialEC384, credentialEC521, credentialHMAC, credentialRSA, idGenerator, metadataCtx, profileRequestCtx, request, requestCtx, respCtx, rpCtx, subject
-
-
Constructor Summary
Constructors Constructor Description SetConsentToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit(boolean encodeConsent, boolean consentEnabled)voidtestFailNoAttributeContext()Test that action handles missing attribute context.voidtestNoAttributeReleaseFlow()Test that action doesn't create context when attribute-release flow is not returned by the lookup function.voidtestSuccess()Test that action handles basic success case.voidtestWithEncodingDisabled()Test that action doesn't create context when consent encoding flag in profile config is disabled.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUp, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Method Detail
-
init
private void init(boolean encodeConsent, boolean consentEnabled) throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testWithEncodingDisabled
public void testWithEncodingDisabled() throws ComponentInitializationExceptionTest that action doesn't create context when consent encoding flag in profile config is disabled.- Throws:
ComponentInitializationException
-
testFailNoAttributeContext
public void testFailNoAttributeContext() throws ComponentInitializationExceptionTest that action handles missing attribute context.- Throws:
ComponentInitializationException
-
testNoAttributeReleaseFlow
public void testNoAttributeReleaseFlow() throws ComponentInitializationExceptionTest that action doesn't create context when attribute-release flow is not returned by the lookup function.- Throws:
ComponentInitializationException
-
testSuccess
public void testSuccess() throws ComponentInitializationExceptionTest that action handles basic success case.- Throws:
ComponentInitializationException
-
-