|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.test.server.ResponseMatchers
public abstract class ResponseMatchers
Factory methods for ResponseMatcher
classes. Typically used to provide input for ResponseActions.andExpect(ResponseMatcher)
.
Method Summary | |
---|---|
static ResponseMatcher |
clientOrSenderFault()
Expects a Client (SOAP 1.1) or Sender (SOAP 1.2) fault. |
static ResponseMatcher |
clientOrSenderFault(String faultStringOrReason)
Expects a Client (SOAP 1.1) or Sender (SOAP 1.2) fault with a particular fault string or reason. |
static ResponseMatcher |
mustUnderstandFault()
Expects a MustUnderstand fault. |
static ResponseMatcher |
mustUnderstandFault(String faultStringOrReason)
Expects a MustUnderstand fault with a particular fault string or reason. |
static ResponseMatcher |
noFault()
Expects the response not to contain a SOAP fault. |
static ResponseMatcher |
payload(Resource payload)
Expects the given Resource XML payload. |
static ResponseMatcher |
payload(Source payload)
Expects the given Source XML payload. |
static ResponseMatcher |
serverOrReceiverFault()
Expects a Server (SOAP 1.1) or Receiver (SOAP 1.2) fault. |
static ResponseMatcher |
serverOrReceiverFault(String faultStringOrReason)
Expects a Server (SOAP 1.1) or Receiver (SOAP 1.2) fault with a particular fault string or reason. |
static ResponseMatcher |
soapEnvelope(Resource soapEnvelope)
Expects the given Resource XML SOAP envelope. |
static ResponseMatcher |
soapEnvelope(Source soapEnvelope)
Expects the given Source XML SOAP envelope. |
static ResponseMatcher |
soapHeader(QName soapHeaderName)
Expects the given SOAP header in the outgoing message. |
static ResponseMatcher |
validPayload(Resource schema,
Resource... furtherSchemas)
Expects the payload to validate against the given XSD schema(s). |
static ResponseMatcher |
versionMismatchFault()
Expects a VersionMismatch fault. |
static ResponseMatcher |
versionMismatchFault(String faultStringOrReason)
Expects a VersionMismatch fault with a particular fault string or reason. |
static ResponseXPathExpectations |
xpath(String xpathExpression)
Expects the given XPath expression to (not) exist or be evaluated to a value. |
static ResponseXPathExpectations |
xpath(String xpathExpression,
Map<String,String> namespaceMapping)
Expects the given XPath expression to (not) exist or be evaluated to a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResponseMatcher payload(Source payload)
Source
XML payload.
payload
- the XML payload
public static ResponseMatcher payload(Resource payload) throws IOException
Resource
XML payload.
payload
- the XML payload
IOException
public static ResponseMatcher validPayload(Resource schema, Resource... furtherSchemas) throws IOException
schema
- the schemafurtherSchemas
- further schemas, if necessary
IOException
public static ResponseXPathExpectations xpath(String xpathExpression)
xpathExpression
- the XPath expression
public static ResponseXPathExpectations xpath(String xpathExpression, Map<String,String> namespaceMapping)
xpathExpression
- the XPath expressionnamespaceMapping
- the namespaces
public static ResponseMatcher soapEnvelope(Source soapEnvelope)
Source
XML SOAP envelope.
soapEnvelope
- the XML SOAP envelope
public static ResponseMatcher soapEnvelope(Resource soapEnvelope) throws IOException
Resource
XML SOAP envelope.
soapEnvelope
- the XML SOAP envelope
IOException
public static ResponseMatcher soapHeader(QName soapHeaderName)
soapHeaderName
- the qualified name of the SOAP header to expect
public static ResponseMatcher noFault()
public static ResponseMatcher mustUnderstandFault()
MustUnderstand
fault.
SoapBody.addMustUnderstandFault(String, Locale)
public static ResponseMatcher mustUnderstandFault(String faultStringOrReason)
MustUnderstand
fault with a particular fault string or reason.
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason text. If null
the fault string or
reason text will not be verifiedSoapBody.addMustUnderstandFault(String, Locale)
public static ResponseMatcher clientOrSenderFault()
Client
(SOAP 1.1) or Sender
(SOAP 1.2) fault.
SoapBody.addClientOrSenderFault(String, Locale)
public static ResponseMatcher clientOrSenderFault(String faultStringOrReason)
Client
(SOAP 1.1) or Sender
(SOAP 1.2) fault with a particular fault string or reason.
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason text. If null
the fault string or
reason text will not be verifiedSoapBody.addClientOrSenderFault(String, Locale)
public static ResponseMatcher serverOrReceiverFault()
Server
(SOAP 1.1) or Receiver
(SOAP 1.2) fault.
SoapBody.addServerOrReceiverFault(String, java.util.Locale)
public static ResponseMatcher serverOrReceiverFault(String faultStringOrReason)
Server
(SOAP 1.1) or Receiver
(SOAP 1.2) fault with a particular fault string or reason.
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason text. If null
the fault string or
reason text will not be verifiedSoapBody.addClientOrSenderFault(String, Locale)
public static ResponseMatcher versionMismatchFault()
VersionMismatch
fault.
SoapBody.addVersionMismatchFault(String, java.util.Locale)
public static ResponseMatcher versionMismatchFault(String faultStringOrReason)
VersionMismatch
fault with a particular fault string or reason.
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason text. If null
the fault string or
reason text will not be verifiedSoapBody.addClientOrSenderFault(String, Locale)
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |