Class AddStateHandlerTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddStateHandlerTest
-
public class AddStateHandlerTest extends AbstractOIDCTest
Tests for AddState.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddStateHandlerhandlerThe message handler to test.private net.shibboleth.idp.plugin.authn.oidc.rp.context.OutboundMessageHandlerContexthandlerContextThe outbound handler context.private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequestrequestThe authn request.private static StringSWF_KEYThe SWF key.-
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 AddStateHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestFailure_NoOutBoundContext()Test error occurs if no outbound context is supplied.voidtestSuccess()Test the state is added correctly.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Field Detail
-
SWF_KEY
private static final String SWF_KEY
The SWF key.- See Also:
- Constant Field Values
-
handler
private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddStateHandler handler
The message handler to test.
-
request
private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest request
The authn request.
-
handlerContext
private net.shibboleth.idp.plugin.authn.oidc.rp.context.OutboundMessageHandlerContext handlerContext
The outbound handler context.
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testSuccess
public void testSuccess() throws ExceptionTest the state is added correctly.- Throws:
Exception- on error
-
-