|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.server.AbstractCommonWebServiceServerTest
public abstract class AbstractCommonWebServiceServerTest
Simplifies usage of Spring WS testing framework. Wraps static methods of RequestCreators, ResponseMatchers and MockWebServiceClient.
It also automatically creates MockWebServiceClient instance.
| Constructor Summary | |
|---|---|
AbstractCommonWebServiceServerTest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCommonWebServiceServerTest()
| Method Detail |
|---|
public org.springframework.ws.test.server.RequestCreator withPayload(Source payload)
Source XML as payload.
payload - the request payload
public org.springframework.ws.test.server.RequestCreator withPayload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML as payload.
payload - the request payload
IOExceptionpublic org.springframework.ws.test.server.ResponseMatcher payload(Source payload)
Source XML payload.
payload - the XML payload
public org.springframework.ws.test.server.ResponseMatcher payload(org.springframework.core.io.Resource payload)
throws IOException
Resource XML payload.
payload - the XML payload
IOException
public 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 necessary
IOExceptionpublic org.springframework.ws.test.server.ResponseXPathExpectations xpath(String xpathExpression)
xpathExpression - the XPath expression
public org.springframework.ws.test.server.ResponseXPathExpectations xpath(String xpathExpression,
Map<String,String> namespaceMapping)
xpathExpression - the XPath expressionnamespaceMapping - the namespaces
public org.springframework.ws.test.server.ResponseMatcher soapHeader(QName soapHeaderName)
soapHeaderName - the qualified name of the SOAP header to expect
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||