|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.client.AbstractCommonWebServiceClientTest
public abstract class AbstractCommonWebServiceClientTest
| Constructor Summary | |
|---|---|
AbstractCommonWebServiceClientTest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCommonWebServiceClientTest()
| Method Detail |
|---|
public org.springframework.ws.test.client.ResponseCreator withPayload(Source payload)
Source XML as payload response.
payload - the response payload
public org.springframework.ws.test.client.ResponseCreator withPayload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML as payload response.
payload - the response payload
IOExceptionpublic org.springframework.ws.test.client.ResponseCreator withError(String errorMessage)
errorMessage - the error message
WebServiceConnection.hasError(),
WebServiceConnection.getErrorMessage()public org.springframework.ws.test.client.ResponseCreator withException(IOException ioException)
IOException.
ioException - the exception to be thrown
public org.springframework.ws.test.client.ResponseCreator withException(RuntimeException ex)
RuntimeException.
ex - the runtime exception to be thrown
public 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 payload
public org.springframework.ws.test.client.RequestMatcher payload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML payload.
payload - the XML payload
IOException
public 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 necessary
IOExceptionpublic org.springframework.ws.test.client.RequestXPathExpectations xpath(String xpathExpression)
xpathExpression - the XPath expression
public org.springframework.ws.test.client.RequestXPathExpectations xpath(String xpathExpression,
Map<String,String> namespaceMapping)
xpathExpression - the XPath expressionnamespaceMapping - the namespaces
public org.springframework.ws.test.client.RequestMatcher soapHeader(QName soapHeaderName)
soapHeaderName - the qualified name of the SOAP header to expect
public org.springframework.ws.test.client.RequestMatcher connectionTo(String uri)
uri - the String uri expected to connect to
public org.springframework.ws.test.client.RequestMatcher connectionTo(URI uri)
uri - the String uri expected to connect to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||