Package org.opensaml.soap.testing
Class SOAPTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.soap.testing.SOAPTest
-
public class SOAPTest extends XMLObjectBaseTestCase
Tests marshalling and unmarshalling SOAP messages.
-
-
Field Summary
Fields Modifier and Type Field Description private StringexpectedFaultActorprivate QNameexpectedFaultCodeprivate StringexpectedFaultStringprivate StringsoapFaultPath, on classpath, to SOAP fault test document.private StringsoapFaultMarshallPath, on classpath, to SOAP fault test document.private StringsoapMessagePath, on classpath, to SOAP message test document.-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SOAPTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestSOAPFault()Test unmarshalling a SOAP fault, dropping its DOM representation and then remarshalling it.voidtestSOAPFaultBuilders()Test that the no-arg SOAP fault-related builders are operating correcting, i.e.voidtestSOAPFaultConstructAndMarshall()Test constructing and marshalling a SOAP fault message.voidtestSOAPMessage()Test unmarshalling a SOAP message, dropping its DOM representation and then remarshalling it.-
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
-
soapMessage
private String soapMessage
Path, on classpath, to SOAP message test document.
-
soapFault
private String soapFault
Path, on classpath, to SOAP fault test document.
-
soapFaultMarshall
private String soapFaultMarshall
Path, on classpath, to SOAP fault test document.
-
expectedFaultCode
private QName expectedFaultCode
-
expectedFaultString
private String expectedFaultString
-
expectedFaultActor
private String expectedFaultActor
-
-
Method Detail
-
testSOAPMessage
public void testSOAPMessage() throws XMLParserException, UnmarshallingExceptionTest unmarshalling a SOAP message, dropping its DOM representation and then remarshalling it.- Throws:
XMLParserException- thrown if the XML document can not be located or parsed into a DOMUnmarshallingException- thrown if the DOM can not be unmarshalled
-
testSOAPFault
public void testSOAPFault() throws XMLParserException, UnmarshallingExceptionTest unmarshalling a SOAP fault, dropping its DOM representation and then remarshalling it.- Throws:
XMLParserException- thrown if the XML document can not be located or parsed into a DOMUnmarshallingException- thrown if the DOM can not be unmarshalled
-
testSOAPFaultConstructAndMarshall
public void testSOAPFaultConstructAndMarshall() throws MarshallingException, XMLParserExceptionTest constructing and marshalling a SOAP fault message.- Throws:
MarshallingException- if the DOM can not b marshalledXMLParserException- ...
-
testSOAPFaultBuilders
public void testSOAPFaultBuilders()
Test that the no-arg SOAP fault-related builders are operating correcting, i.e. not namespace-qualified.
-
-