Class SetSessionIdToResponseContextTest
- 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.SetSessionIdToResponseContextTest
-
public class SetSessionIdToResponseContextTest extends BaseOIDCResponseActionTest
SetSessionIdToResponseContextunit 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.SetSessionIdToResponseContextactionAction.-
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 SetSessionIdToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()private voidinit(Function<ProfileRequestContext,String> strategy)voidtestInitialized()Test that action throws error when strategy is being set when already initialized.voidtestNoStrategy()Test that action throws error when null strategy is set.voidtestSuccessWithoutValue()Test that action copies session id to response ctx.voidtestSuccessWithValue()Test that action copies session id to response ctx.-
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() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
init
private void init(Function<ProfileRequestContext,String> strategy) throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
testNoStrategy
public void testNoStrategy()
Test that action throws error when null strategy is set.
-
testInitialized
public void testInitialized() throws NoSuchAlgorithmException, ComponentInitializationExceptionTest that action throws error when strategy is being set when already initialized.
-
testSuccessWithoutValue
public void testSuccessWithoutValue() throws ComponentInitializationException, URISyntaxExceptionTest that action copies session id to response ctx.
-
testSuccessWithValue
public void testSuccessWithValue() throws ComponentInitializationException, URISyntaxExceptionTest that action copies session id to response ctx.
-
-