Class HTTPSOAP11EncoderTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.soap.soap11.encoder.http.impl.HTTPSOAP11EncoderTest
-
public class HTTPSOAP11EncoderTest extends XMLObjectBaseTestCase
Test basic SOAP 1.1 message encoding.
-
-
Field Summary
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description HTTPSOAP11EncoderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLObjectparseUnmarshallResource(String resource, boolean dropDOM)protected XMLObjectparseUnmarshallResourceByteArray(byte[] input, boolean dropDOM)voidtestBasicEncodingAsPayload()Test basic encoding of a message in an envelope, using payload-oriented messaging.voidtestBasicEncodingAsSOAPEnvelope()Test basic encoding of a message in an envelope, using SOAP-message oriented messaging.voidtestContextReturnStatus()voidtestEncodingAsPayloadWithHeader()Test basic encoding of a message in an envelope, using payload-oriented messaging.voidtestEncodingWithAction()Test basic encoding of a message in an envelope, using payload-oriented messaging.voidtestFaultAsMessage()voidtestFaultFromContextSignal()protected XMLObjectunmarshallXMLObject(Document soapDoc, boolean dropDOM)-
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
-
-
-
-
Method Detail
-
testBasicEncodingAsPayload
public void testBasicEncodingAsPayload() throws ComponentInitializationException, MessageEncodingException, UnsupportedEncodingException, XMLParserException, UnmarshallingExceptionTest basic encoding of a message in an envelope, using payload-oriented messaging.- Throws:
ComponentInitializationException- ...XMLParserException- ...UnmarshallingException- ...MessageEncodingException- ...UnsupportedEncodingException- ...
-
testBasicEncodingAsSOAPEnvelope
public void testBasicEncodingAsSOAPEnvelope() throws ComponentInitializationException, MessageEncodingException, UnsupportedEncodingException, XMLParserException, UnmarshallingExceptionTest basic encoding of a message in an envelope, using SOAP-message oriented messaging.- Throws:
ComponentInitializationException- ...XMLParserException- ...UnmarshallingException- ...MessageEncodingException- ...UnsupportedEncodingException- ...
-
testEncodingAsPayloadWithHeader
public void testEncodingAsPayloadWithHeader() throws ComponentInitializationException, MessageEncodingException, UnsupportedEncodingException, XMLParserException, UnmarshallingExceptionTest basic encoding of a message in an envelope, using payload-oriented messaging. Supply an Envelope and header via SOAP subcontext.- Throws:
ComponentInitializationException- ...XMLParserException- ...UnmarshallingException- ...MessageEncodingException- ...UnsupportedEncodingException- ...
-
testEncodingWithAction
public void testEncodingWithAction() throws ComponentInitializationException, MessageEncodingException, UnsupportedEncodingException, XMLParserException, UnmarshallingExceptionTest basic encoding of a message in an envelope, using payload-oriented messaging.- Throws:
ComponentInitializationException- ...XMLParserException- ...UnmarshallingException- ...MessageEncodingException- ...UnsupportedEncodingException- ...
-
testFaultAsMessage
public void testFaultAsMessage() throws ComponentInitializationException, MessageEncodingException, XMLParserException, UnmarshallingException
-
testFaultFromContextSignal
public void testFaultFromContextSignal() throws ComponentInitializationException, MessageEncodingException, XMLParserException, UnmarshallingException
-
testContextReturnStatus
public void testContextReturnStatus() throws ComponentInitializationException, MessageEncodingException, XMLParserException, UnmarshallingException
-
parseUnmarshallResource
protected XMLObject parseUnmarshallResource(String resource, boolean dropDOM) throws XMLParserException, UnmarshallingException
-
parseUnmarshallResourceByteArray
protected XMLObject parseUnmarshallResourceByteArray(byte[] input, boolean dropDOM) throws XMLParserException, UnmarshallingException
-
unmarshallXMLObject
protected XMLObject unmarshallXMLObject(Document soapDoc, boolean dropDOM) throws UnmarshallingException
- Throws:
UnmarshallingException
-
-