public class AddChannelBindingsHeaderHandlerTest
extends org.opensaml.core.OpenSAMLInitBaseTestCase
AddChannelBindingsHeaderHandler unit test.| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.common.messaging.context.ChannelBindingsContext |
cbc |
private org.opensaml.saml.common.binding.impl.AddChannelBindingsHeaderHandler |
handler |
private org.opensaml.messaging.context.MessageContext<org.opensaml.saml.saml2.ecp.Response> |
messageCtx |
| Constructor and Description |
|---|
AddChannelBindingsHeaderHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testMissingEnvelope()
Test that the handler errors on a missing SOAP context.
|
void |
testNoBindings()
Test that the handler does nothing on a missing CB context.
|
void |
testSuccess()
Test that the handler works.
|
private org.opensaml.saml.common.messaging.context.ChannelBindingsContext cbc
private org.opensaml.messaging.context.MessageContext<org.opensaml.saml.saml2.ecp.Response> messageCtx
private org.opensaml.saml.common.binding.impl.AddChannelBindingsHeaderHandler handler
public void setUp()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testNoBindings()
throws org.opensaml.messaging.handler.MessageHandlerException
org.opensaml.messaging.handler.MessageHandlerExceptionpublic void testMissingEnvelope()
throws org.opensaml.messaging.handler.MessageHandlerException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException
org.opensaml.messaging.handler.MessageHandlerExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testSuccess()
throws org.opensaml.messaging.handler.MessageHandlerException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException
org.opensaml.messaging.handler.MessageHandlerExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionCopyright © 1999–2015. All rights reserved.