|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.client.AbstractCommonWebServiceClientTest
net.javacrumbs.smock.common.client.AbstractCommonSmockClientTest
public abstract class AbstractCommonSmockClientTest
Extends AbstractWebServiceClientTest and gives access to Smock specific methods.
| Constructor Summary | |
|---|---|
AbstractCommonSmockClientTest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.javacrumbs.smock.common.client.AbstractCommonWebServiceClientTest |
|---|
anything, connectionTo, connectionTo, payload, payload, soapHeader, validPayload, withClientOrSenderFault, withError, withException, withException, withMustUnderstandFault, withPayload, withPayload, withServerOrReceiverFault, withVersionMismatchFault, xpath, xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCommonSmockClientTest()
| Method Detail |
|---|
public 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 message
public 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 message
public 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 message
public ParametrizableResponseCreator withMessage(String location)
loaction - of the resource
public ParametrizableResponseCreator withMessage(org.springframework.core.io.Resource message)
loaction - of the resource
public 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 message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||