public abstract class AbstractCommonSmockClientTest extends AbstractCommonWebServiceClientTest
AbstractWebServiceClientTest and gives access to Smock specific methods.| Constructor and Description |
|---|
AbstractCommonSmockClientTest() |
| Modifier and Type | Method and Description |
|---|---|
static Source |
fromResource(String location)
Loads resource using resourceLoader set by
setResourceLoader(ResourceLoader). |
ParametrizableRequestMatcher |
message(Document message)
Expects the given
Source XML message. |
ParametrizableRequestMatcher |
message(org.springframework.core.io.Resource message)
Expects the given
Resource XML message. |
ParametrizableRequestMatcher |
message(Source message)
Expects the given
Source XML message. |
ParametrizableRequestMatcher |
message(String location)
Expects the given XML message loaded from resource with given name.
|
static org.springframework.core.io.Resource |
resource(String location)
Loads resource using resourceLoader set by
setResourceLoader(ResourceLoader). |
static void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Sets the resource loader to be used.
|
static void |
setTemplateProcessor(TemplateProcessor templateProcessor)
Sets
TemplateProcessor used by Smock. |
ParametrizableResponseCreator |
withMessage(org.springframework.core.io.Resource message)
Respond with the given XML loaded from resource as response.
|
ParametrizableResponseCreator |
withMessage(Source message)
Respond with the given
Source XML as response. |
ParametrizableResponseCreator |
withMessage(String location)
Respond with the given XML loaded from resource as response.
|
anything, connectionTo, connectionTo, payload, payload, soapHeader, validPayload, withClientOrSenderFault, withError, withException, withException, withMustUnderstandFault, withPayload, withPayload, withServerOrReceiverFault, withVersionMismatchFault, xpath, xpathpublic static void setTemplateProcessor(TemplateProcessor templateProcessor)
TemplateProcessor used by Smock.templateProcessor - public static void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
resourceLoader - public static Source fromResource(String location)
setResourceLoader(ResourceLoader).location - Location of the resourcepublic static org.springframework.core.io.Resource resource(String location)
setResourceLoader(ResourceLoader).location - Location of the resourcepublic ParametrizableRequestMatcher message(String location)
location - of the resource where the message is stored.public ParametrizableRequestMatcher message(org.springframework.core.io.Resource message)
Resource XML message. Message can either be whole SOAP message or just a payload.
If only payload is passed in, only payloads will be compared, otherwise whole message will be compared.message - the XML messagepublic ParametrizableRequestMatcher message(Source message)
Source XML message. Message can either be whole SOAP message or just a payload.
If only payload is passed in, only payloads will be compared, otherwise whole message will be compared.message - the XML messagepublic ParametrizableRequestMatcher message(Document message)
Source XML message. Message can either be whole SOAP message or just a payload.
If only payload is passed in, only payloads will be compared, otherwise whole message will be compared.message - the XML messagepublic ParametrizableResponseCreator withMessage(String location)
loaction - of the resourcepublic ParametrizableResponseCreator withMessage(org.springframework.core.io.Resource message)
loaction - of the resourcepublic ParametrizableResponseCreator withMessage(Source message)
Source XML as response. If message is SOAP, it will be returned as response, if message is payload,
it will be wrapped into a SOAP.payload - the response messageCopyright © 2017. All Rights Reserved.