Class SetSubjectToResponseContextTest
- 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.SetSubjectToResponseContextTest
-
public class SetSubjectToResponseContextTest extends BaseOIDCResponseActionTest
SetSubjectToResponseContextunit 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.SetSubjectToResponseContextactionAction.-
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 SetSubjectToResponseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()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.voidtestNoSubject()Test that action handles case of no subject available.voidtestSuccess()Test that action copies subject 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
-
testNoSubject
public void testNoSubject() throws ComponentInitializationExceptionTest that action handles case of no subject available.- 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.
-
testSuccess
public void testSuccess() throws ComponentInitializationException, URISyntaxExceptionTest that action copies subject to response ctx.
-
-