public abstract class AbstractCommonWebServiceServerTest extends Object
RequestCreators, ResponseMatchers and MockWebServiceClient.
It also automatically creates MockWebServiceClient instance.| Constructor and Description |
|---|
AbstractCommonWebServiceServerTest() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ws.test.server.ResponseMatcher |
clientOrSenderFault()
Expects a
Client (SOAP 1.1) or Sender (SOAP 1.2) fault. |
org.springframework.ws.test.server.ResponseMatcher |
clientOrSenderFault(String faultStringOrReason)
Expects a
Client (SOAP 1.1) or Sender (SOAP 1.2) fault with a particular fault string or reason. |
org.springframework.ws.test.server.ResponseMatcher |
mustUnderstandFault()
Expects a
MustUnderstand fault. |
org.springframework.ws.test.server.ResponseMatcher |
mustUnderstandFault(String faultStringOrReason)
Expects a
MustUnderstand fault with a particular fault string or reason. |
org.springframework.ws.test.server.ResponseMatcher |
noFault()
Expects the response not to contain a SOAP fault.
|
org.springframework.ws.test.server.ResponseMatcher |
payload(org.springframework.core.io.Resource payload)
Expects the given
Resource XML payload. |
org.springframework.ws.test.server.ResponseMatcher |
payload(Source payload)
Expects the given
Source XML payload. |
org.springframework.ws.test.server.ResponseMatcher |
serverOrReceiverFault()
Expects a
Server (SOAP 1.1) or Receiver (SOAP 1.2) fault. |
org.springframework.ws.test.server.ResponseMatcher |
serverOrReceiverFault(String faultStringOrReason)
Expects a
Server (SOAP 1.1) or Receiver (SOAP 1.2) fault with a particular fault string or reason. |
org.springframework.ws.test.server.ResponseMatcher |
soapHeader(QName soapHeaderName)
Expects the given SOAP header in the outgoing message.
|
org.springframework.ws.test.server.ResponseMatcher |
validPayload(org.springframework.core.io.Resource schema,
org.springframework.core.io.Resource... furtherSchemas)
Expects the payload to validate against the given XSD schema(s).
|
org.springframework.ws.test.server.ResponseMatcher |
versionMismatchFault()
Expects a
VersionMismatch fault. |
org.springframework.ws.test.server.ResponseMatcher |
versionMismatchFault(String faultStringOrReason)
Expects a
VersionMismatch fault with a particular fault string or reason. |
org.springframework.ws.test.server.RequestCreator |
withPayload(org.springframework.core.io.Resource payload)
Create a request with the given
Resource XML as payload. |
org.springframework.ws.test.server.RequestCreator |
withPayload(Source payload)
Create a request with the given
Source XML as payload. |
org.springframework.ws.test.server.ResponseXPathExpectations |
xpath(String xpathExpression)
Expects the given XPath expression to (not) exist or be evaluated to a value.
|
org.springframework.ws.test.server.ResponseXPathExpectations |
xpath(String xpathExpression,
Map<String,String> namespaceMapping)
Expects the given XPath expression to (not) exist or be evaluated to a value.
|
public org.springframework.ws.test.server.RequestCreator withPayload(Source payload)
Source XML as payload.payload - the request payloadpublic org.springframework.ws.test.server.RequestCreator withPayload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML as payload.payload - the request payloadIOExceptionpublic org.springframework.ws.test.server.ResponseMatcher payload(Source payload)
Source XML payload.payload - the XML payloadpublic org.springframework.ws.test.server.ResponseMatcher payload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML payload.payload - the XML payloadIOExceptionpublic org.springframework.ws.test.server.ResponseMatcher validPayload(org.springframework.core.io.Resource schema,
org.springframework.core.io.Resource... furtherSchemas)
throws IOException
schema - the schemafurtherSchemas - further schemas, if necessaryIOExceptionpublic org.springframework.ws.test.server.ResponseXPathExpectations xpath(String xpathExpression)
xpathExpression - the XPath expressionpublic org.springframework.ws.test.server.ResponseXPathExpectations xpath(String xpathExpression, Map<String,String> namespaceMapping)
xpathExpression - the XPath expressionnamespaceMapping - the namespacespublic org.springframework.ws.test.server.ResponseMatcher soapHeader(QName soapHeaderName)
soapHeaderName - the qualified name of the SOAP header to expectpublic org.springframework.ws.test.server.ResponseMatcher noFault()
public org.springframework.ws.test.server.ResponseMatcher mustUnderstandFault()
MustUnderstand fault.SoapBody.addMustUnderstandFault(String, Locale)public org.springframework.ws.test.server.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 org.springframework.ws.test.server.ResponseMatcher clientOrSenderFault()
Client (SOAP 1.1) or Sender (SOAP 1.2) fault.SoapBody.addClientOrSenderFault(String, Locale)public org.springframework.ws.test.server.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 org.springframework.ws.test.server.ResponseMatcher serverOrReceiverFault()
Server (SOAP 1.1) or Receiver (SOAP 1.2) fault.SoapBody.addServerOrReceiverFault(String, java.util.Locale)public org.springframework.ws.test.server.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 org.springframework.ws.test.server.ResponseMatcher versionMismatchFault()
VersionMismatch fault.SoapBody.addVersionMismatchFault(String, java.util.Locale)public org.springframework.ws.test.server.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)Copyright © 2017. All Rights Reserved.