public abstract class AbstractCommonSmockServerTest extends AbstractCommonWebServiceServerTest
AbstractCommonWebServiceServerTest and adds Smock specific methods.| Constructor and Description |
|---|
AbstractCommonSmockServerTest() |
| Modifier and Type | Method and Description |
|---|---|
Source |
fromResource(String location)
Loads resource using resourceLoader set by
setResourceLoader(ResourceLoader). |
ParametrizableResponseMatcher |
message(Document message)
Expects the given message.
|
ParametrizableResponseMatcher |
message(org.springframework.core.io.Resource messageResource)
Expects the given message.
|
ParametrizableResponseMatcher |
message(Source content)
Expects the given message.
|
ParametrizableResponseMatcher |
message(String messageResource)
Expects the given message.
|
org.springframework.core.io.Resource |
resource(String location)
Loads resource using resourceLoader set by
setResourceLoader(ResourceLoader). |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Sets the resource loader to be used.
|
void |
setTemplateProcessor(TemplateProcessor templateProcessor)
Sets
TemplateProcessor used by Smock. |
ParametrizableRequestCreator |
withMessage(Document message)
Create a request with the given
Document XML as content. |
ParametrizableRequestCreator |
withMessage(org.springframework.core.io.Resource messageResource)
Create a request with the given
Resource as content. |
ParametrizableRequestCreator |
withMessage(Source message)
Create a request with the given
Source XML as content. |
ParametrizableRequestCreator |
withMessage(String messageResource)
Create a request with the given
Resource as content. |
clientOrSenderFault, clientOrSenderFault, mustUnderstandFault, mustUnderstandFault, noFault, payload, payload, serverOrReceiverFault, serverOrReceiverFault, soapHeader, validPayload, versionMismatchFault, versionMismatchFault, withPayload, withPayload, xpath, xpathpublic void setTemplateProcessor(TemplateProcessor templateProcessor)
TemplateProcessor used by Smock.templateProcessor - public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
resourceLoader - public Source fromResource(String location)
setResourceLoader(ResourceLoader).location - Location of the resourcepublic org.springframework.core.io.Resource resource(String location)
setResourceLoader(ResourceLoader).location - Location of the resourcepublic ParametrizableRequestCreator withMessage(String messageResource)
Resource as content. If the content is payload it will be wrapped into a SOAP,
if the content contains the whole message, it will be used as it is. Supports templates that will be resolved by TemplateProcessor.payload - the request payloadpublic ParametrizableRequestCreator withMessage(org.springframework.core.io.Resource messageResource)
Resource as content. If the content is payload it will be wrapped into a SOAP,
if the content contains the whole message, it will be used as it is. Supports templates that will be resolved by TemplateProcessor.payload - the request payloadpublic ParametrizableRequestCreator withMessage(Source message)
Source XML as content. If the content is payload it will be wrapped into a SOAP,
if the content contains the whole message, it will be used as it is. Supports templates that will be resolved by TemplateProcessor.message - public ParametrizableRequestCreator withMessage(Document message)
Document XML as content. If the content is payload it will be wrapped into a SOAP,
if the content contains the whole message, it will be used as it is. Supports templates that will be resolved by TemplateProcessor.message - public ParametrizableResponseMatcher message(String messageResource)
TemplateProcessor.message - public ParametrizableResponseMatcher message(org.springframework.core.io.Resource messageResource)
TemplateProcessor.message - public ParametrizableResponseMatcher message(Source content)
TemplateProcessor.content - public ParametrizableResponseMatcher message(Document message)
TemplateProcessor.message - Copyright © 2017. All Rights Reserved.