Class SetTokenDeliveryAttributesToResponseContextTest
- 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.SetTokenDeliveryAttributesToResponseContextTest
-
public class SetTokenDeliveryAttributesToResponseContextTest extends BaseOIDCResponseActionTest
SetTokenDeliveryAttributesToResponseContextunit 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.SetTokenDeliveryAttributesToResponseContextactionprivate net.shibboleth.idp.attribute.transcoding.impl.AttributeTranscoderRegistryImplregistry-
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 SetTokenDeliveryAttributesToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidsetAttributeContext()voidsetup()voidtearDown()voidtestNoAttributeCtx()Test that action copes with no attribute context.voidtestSuccess()Test that action create the context.voidtestSuccessWithClaimsRequestedToIdToken()Test that action create the context with a claim requested to id_token.-
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
-
setup
@BeforeMethod public void setup() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
tearDown
@AfterMethod public void tearDown()
-
setAttributeContext
private void setAttributeContext()
-
testNoAttributeCtx
public void testNoAttributeCtx()
Test that action copes with no attribute context. Action should just move forward without action taken.
-
testSuccess
public void testSuccess()
Test that action create the context.
-
testSuccessWithClaimsRequestedToIdToken
public void testSuccessWithClaimsRequestedToIdToken()
Test that action create the context with a claim requested to id_token.
-
-