Class HTTPSOAP11DecoderTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.soap.soap11.decoder.http.impl.HTTPSOAP11DecoderTest
-
public class HTTPSOAP11DecoderTest extends XMLObjectBaseTestCase
Test basic SOAP 1.1 message decoding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHTTPSOAP11DecoderTest.TestEnvelopeBodyHandlerclassHTTPSOAP11DecoderTest.TestPayloadBodyHandler
-
Field Summary
Fields Modifier and Type Field Description private HTTPSOAP11Decoderdecoderprivate MockHttpServletRequesthttpRequest-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description HTTPSOAP11DecoderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]getServletRequestContent(String resourceName)Get a resource relative to a class.protected voidsetUp()voidtestDecodeToEnvelope()Test basic no header case.voidtestDecodeToPayload()Test basic no header case.voidtestInvalidContentType()Test invalid content type.voidtestmissingContentType()Test missing content type.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
decoder
private HTTPSOAP11Decoder decoder
-
httpRequest
private MockHttpServletRequest httpRequest
-
-
Method Detail
-
testDecodeToEnvelope
public void testDecodeToEnvelope() throws ComponentInitializationException, MessageDecodingException, IOExceptionTest basic no header case. Message will be an Envelope.- Throws:
ComponentInitializationException- ...MessageDecodingException- ...IOException- ...
-
testDecodeToPayload
public void testDecodeToPayload() throws ComponentInitializationException, MessageDecodingException, IOExceptionTest basic no header case. Message will be an non-Envelope payload.- Throws:
ComponentInitializationException- ...MessageDecodingException- ...IOException- ...
-
testmissingContentType
public void testmissingContentType() throws ComponentInitializationException, MessageDecodingException, IOExceptionTest missing content type.- Throws:
ComponentInitializationException- ...MessageDecodingException- ...IOException- ...
-
testInvalidContentType
public void testInvalidContentType() throws ComponentInitializationException, MessageDecodingException, IOExceptionTest invalid content type.- Throws:
ComponentInitializationException- ...MessageDecodingException- ...IOException- ...
-
getServletRequestContent
private byte[] getServletRequestContent(String resourceName) throws IOException
Get a resource relative to a class.- Parameters:
resourceName- ...- Returns:
- resource content
- Throws:
IOException- ...
-
-