Class BuildJSONErrorResponseFromEventTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEventTest
-
public class BuildJSONErrorResponseFromEventTest extends Object
Unit tests forBuildJSONErrorResponseFromEvent.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringeventIdprotected ProfileRequestContextprofileRequestCtxprotected RequestContextrequestCtx
-
Constructor Summary
Constructors Constructor Description BuildJSONErrorResponseFromEventTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPreExecute_shouldReturnFalseWithoutOutboundMessageContext()voiddoPreExecute_shouldReturnTrueWithOutboundMessageContext()voidexecute_shouldNotSetMessageWhenNoEventContext()voidexecute_shouldSetCustomMessageWhenConfiguredAndEventContext()voidexecute_shouldSetMessageWhenEventContext()protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEventinitializeAction()protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEventinitializeAction(String eventId)protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEventinitializeAction(Map<String,com.nimbusds.oauth2.sdk.ErrorObject> mappedErrors, String eventId)protected voidsetUpContext()
-
-
-
Field Detail
-
requestCtx
protected RequestContext requestCtx
-
profileRequestCtx
protected ProfileRequestContext profileRequestCtx
-
eventId
String eventId
-
-
Method Detail
-
initializeAction
protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEvent initializeAction(Map<String,com.nimbusds.oauth2.sdk.ErrorObject> mappedErrors, String eventId) throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
initializeAction
protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEvent initializeAction(String eventId) throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
initializeAction
protected net.shibboleth.idp.plugin.oidc.op.profile.impl.BuildJSONErrorResponseFromEvent initializeAction() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
setUpContext
@BeforeMethod protected void setUpContext() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
doPreExecute_shouldReturnFalseWithoutOutboundMessageContext
public void doPreExecute_shouldReturnFalseWithoutOutboundMessageContext() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
doPreExecute_shouldReturnTrueWithOutboundMessageContext
public void doPreExecute_shouldReturnTrueWithOutboundMessageContext() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
execute_shouldNotSetMessageWhenNoEventContext
public void execute_shouldNotSetMessageWhenNoEventContext() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
execute_shouldSetMessageWhenEventContext
public void execute_shouldSetMessageWhenEventContext() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
execute_shouldSetCustomMessageWhenConfiguredAndEventContext
public void execute_shouldSetCustomMessageWhenConfiguredAndEventContext() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
-