public abstract class CommonSmockClient extends SmockCommon
| Constructor and Description |
|---|
CommonSmockClient() |
| Modifier and Type | Method and Description |
|---|---|
static ParametrizableRequestMatcher |
message(Document message)
Expects the given
Source XML message. |
static ParametrizableRequestMatcher |
message(org.springframework.core.io.Resource message)
Expects the given
Resource XML message. |
static ParametrizableRequestMatcher |
message(Source message)
Expects the given
Source XML message. |
static ParametrizableRequestMatcher |
message(String location)
Expects the given XML message loaded from resource with given name.
|
static ParametrizableResponseCreator |
withMessage(Document message)
Respond with the given
Document XML as response. |
static ParametrizableResponseCreator |
withMessage(org.springframework.core.io.Resource location)
Respond with the given XML loaded from resource as response.
|
static ParametrizableResponseCreator |
withMessage(Source message)
Respond with the given
Source XML as response. |
static ParametrizableResponseCreator |
withMessage(String location)
Respond with the given XML loaded from resource as response.
|
createMessageFactory, createMessageFactory, createMessageFactory, createSource, fromResource, getResourceLoader, getTemplateProcessor, loadDocument, resource, setResourceLoader, setTemplateProcessorpublic static ParametrizableRequestMatcher message(String location)
TemplateProcessor.location - of the resource where the message is stored.public static 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 will be preprocessed by TemplateProcessor.message - the XML messagepublic static 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 will be preprocessed by TemplateProcessor.message - the XML messagepublic static 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 will be preprocessed by TemplateProcessor.message - the XML messagepublic static ParametrizableResponseCreator withMessage(String location)
TemplateProcessor.location - of the resourcepublic static ParametrizableResponseCreator withMessage(org.springframework.core.io.Resource location)
TemplateProcessor.location - of the resourcepublic static 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.
Message will be preprocessed by TemplateProcessor.message - the response messagepublic static ParametrizableResponseCreator withMessage(Document message)
Document XML as response. If message is SOAP, it will be returned as response, if message is payload,
it will be wrapped into a SOAP.
Message will be preprocessed by TemplateProcessor.message - the response messageCopyright © 2017. All Rights Reserved.