public abstract class AbstractCommonWebServiceClientTest extends Object
| Constructor and Description |
|---|
AbstractCommonWebServiceClientTest() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ws.test.client.RequestMatcher |
anything()
Expects any request.
|
org.springframework.ws.test.client.RequestMatcher |
connectionTo(String uri)
Expects a connection to the given URI.
|
org.springframework.ws.test.client.RequestMatcher |
connectionTo(URI uri)
Expects a connection to the given URI.
|
org.springframework.ws.test.client.RequestMatcher |
payload(org.springframework.core.io.Resource payload)
Expects the given
Resource XML payload. |
org.springframework.ws.test.client.RequestMatcher |
payload(Source payload)
Expects the given
Source XML payload. |
org.springframework.ws.test.client.RequestMatcher |
soapHeader(QName soapHeaderName)
Expects the given SOAP header in the outgoing message.
|
org.springframework.ws.test.client.RequestMatcher |
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.client.ResponseCreator |
withClientOrSenderFault(String faultStringOrReason,
Locale locale)
Respond with a
Client (SOAP 1.1) or Sender (SOAP 1.2) fault. |
org.springframework.ws.test.client.ResponseCreator |
withError(String errorMessage)
Respond with an error.
|
org.springframework.ws.test.client.ResponseCreator |
withException(IOException ioException)
Respond with an
IOException. |
org.springframework.ws.test.client.ResponseCreator |
withException(RuntimeException ex)
Respond with an
RuntimeException. |
org.springframework.ws.test.client.ResponseCreator |
withMustUnderstandFault(String faultStringOrReason,
Locale locale)
Respond with a
MustUnderstand fault. |
org.springframework.ws.test.client.ResponseCreator |
withPayload(org.springframework.core.io.Resource payload)
Respond with the given
Resource XML as payload response. |
org.springframework.ws.test.client.ResponseCreator |
withPayload(Source payload)
Respond with the given
Source XML as payload response. |
org.springframework.ws.test.client.ResponseCreator |
withServerOrReceiverFault(String faultStringOrReason,
Locale locale)
Respond with a
Server (SOAP 1.1) or Receiver (SOAP 1.2) fault. |
org.springframework.ws.test.client.ResponseCreator |
withVersionMismatchFault(String faultStringOrReason,
Locale locale)
Respond with a
VersionMismatch fault. |
org.springframework.ws.test.client.RequestXPathExpectations |
xpath(String xpathExpression)
Expects the given XPath expression to (not) exist or be evaluated to a value.
|
org.springframework.ws.test.client.RequestXPathExpectations |
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.client.ResponseCreator withPayload(Source payload)
Source XML as payload response.payload - the response payloadpublic org.springframework.ws.test.client.ResponseCreator withPayload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML as payload response.payload - the response payloadIOExceptionpublic org.springframework.ws.test.client.ResponseCreator withError(String errorMessage)
errorMessage - the error messageWebServiceConnection.hasError(),
WebServiceConnection.getErrorMessage()public org.springframework.ws.test.client.ResponseCreator withException(IOException ioException)
IOException.ioException - the exception to be thrownpublic org.springframework.ws.test.client.ResponseCreator withException(RuntimeException ex)
RuntimeException.ex - the runtime exception to be thrownpublic org.springframework.ws.test.client.ResponseCreator withMustUnderstandFault(String faultStringOrReason, Locale locale)
MustUnderstand fault.faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason textlocale - the language of faultStringOrReason. Optional for SOAP 1.1SoapBody.addMustUnderstandFault(String, java.util.Locale)public org.springframework.ws.test.client.ResponseCreator withClientOrSenderFault(String faultStringOrReason, Locale locale)
Client (SOAP 1.1) or Sender (SOAP 1.2) fault.faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason textlocale - the language of faultStringOrReason. Optional for SOAP 1.1SoapBody.addClientOrSenderFault(String, Locale)public org.springframework.ws.test.client.ResponseCreator withServerOrReceiverFault(String faultStringOrReason, Locale locale)
Server (SOAP 1.1) or Receiver (SOAP 1.2) fault.faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason textlocale - the language of faultStringOrReason. Optional for SOAP 1.1SoapBody.addServerOrReceiverFault(String, Locale)public org.springframework.ws.test.client.ResponseCreator withVersionMismatchFault(String faultStringOrReason, Locale locale)
VersionMismatch fault.faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason textlocale - the language of faultStringOrReason. Optional for SOAP 1.1SoapBody.addVersionMismatchFault(String, Locale)public org.springframework.ws.test.client.RequestMatcher anything()
public org.springframework.ws.test.client.RequestMatcher payload(Source payload)
Source XML payload.payload - the XML payloadpublic org.springframework.ws.test.client.RequestMatcher payload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML payload.payload - the XML payloadIOExceptionpublic org.springframework.ws.test.client.RequestMatcher 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.client.RequestXPathExpectations xpath(String xpathExpression)
xpathExpression - the XPath expressionpublic org.springframework.ws.test.client.RequestXPathExpectations xpath(String xpathExpression, Map<String,String> namespaceMapping)
xpathExpression - the XPath expressionnamespaceMapping - the namespacespublic org.springframework.ws.test.client.RequestMatcher soapHeader(QName soapHeaderName)
soapHeaderName - the qualified name of the SOAP header to expectpublic org.springframework.ws.test.client.RequestMatcher connectionTo(String uri)
uri - the String uri expected to connect topublic org.springframework.ws.test.client.RequestMatcher connectionTo(URI uri)
uri - the String uri expected to connect toCopyright © 2017. All Rights Reserved.