Class AddChannelBindingsHeaderHandlerTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.common.binding.impl.AddChannelBindingsHeaderHandlerTest
-
public class AddChannelBindingsHeaderHandlerTest extends OpenSAMLInitBaseTestCase
AddChannelBindingsHeaderHandlerunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelBindingsContextcbcprivate AddChannelBindingsHeaderHandlerhandlerprivate MessageContextmessageCtx
-
Constructor Summary
Constructors Constructor Description AddChannelBindingsHeaderHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestMissingEnvelope()Test that the handler errors on a missing SOAP context.voidtestNoBindings()Test that the handler does nothing on a missing CB context.voidtestSuccess()Test that the handler works.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
cbc
private ChannelBindingsContext cbc
-
messageCtx
private MessageContext messageCtx
-
handler
private AddChannelBindingsHeaderHandler handler
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testNoBindings
public void testNoBindings() throws MessageHandlerExceptionTest that the handler does nothing on a missing CB context.- Throws:
MessageHandlerException- ...
-
testMissingEnvelope
public void testMissingEnvelope() throws MessageHandlerException, ComponentInitializationExceptionTest that the handler errors on a missing SOAP context.- Throws:
MessageHandlerException- ...ComponentInitializationException- ...
-
testSuccess
public void testSuccess() throws MessageHandlerException, ComponentInitializationExceptionTest that the handler works.- Throws:
MessageHandlerException- ...ComponentInitializationException- ...
-
-