|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.server.AbstractCommonWebServiceServerTest
net.javacrumbs.smock.common.server.AbstractCommonSmockServerTest
public abstract class AbstractCommonSmockServerTest
Extends AbstractCommonWebServiceServerTest and adds Smock specific methods.
| Constructor Summary | |
|---|---|
AbstractCommonSmockServerTest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.javacrumbs.smock.common.server.AbstractCommonWebServiceServerTest |
|---|
clientOrSenderFault, clientOrSenderFault, mustUnderstandFault, mustUnderstandFault, noFault, payload, payload, serverOrReceiverFault, serverOrReceiverFault, soapHeader, validPayload, versionMismatchFault, versionMismatchFault, withPayload, withPayload, xpath, xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCommonSmockServerTest()
| Method Detail |
|---|
public 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 payload
public 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 payload
public 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||