|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.SmockCommon
net.javacrumbs.smock.common.server.CommonSmockServer
net.javacrumbs.smock.common.server.ServerTestHelper
public class ServerTestHelper
Helper class that simplifies WS server unit tests.
| Constructor Summary | |
|---|---|
ServerTestHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
createRequest(org.springframework.ws.test.server.RequestCreator requestCreator,
Class<T> targetClass)
Deserializes message created by the MessageCreator to the targetClass. |
|
static
|
createRequest(Source messageSource,
Class<T> targetClass)
Deserializes message loaded from messageSource to the targetClass. |
|
static
|
createRequest(String messageLocation,
Class<T> targetClass)
Deserializes message loaded from messageLocation to the targetClass. |
|
static MessageHelper |
getMessageHelper()
|
|
static org.springframework.ws.WebServiceMessage |
serialize(Object object)
Serializes object to WebServiceMessage. |
|
static void |
setMessageHelper(MessageHelper messageHelper)
|
|
static org.springframework.ws.test.server.ResponseActions |
validate(org.springframework.ws.context.MessageContext messageContext)
Creates validator based on the MessageContext. |
|
static org.springframework.ws.test.server.ResponseActions |
validate(Object response)
Creates validator based on the response. |
|
static org.springframework.ws.test.server.ResponseActions |
validate(Object response,
Object request)
Creates validator based on the response and request. |
|
| Methods inherited from class net.javacrumbs.smock.common.server.CommonSmockServer |
|---|
message, message, message, message, withMessage, withMessage, withMessage, withMessage |
| Methods inherited from class net.javacrumbs.smock.common.SmockCommon |
|---|
createMessageFactory, createMessageFactory, createMessageFactory, createSource, fromResource, getResourceLoader, getTemplateProcessor, loadDocument, resource, setResourceLoader, setTemplateProcessor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerTestHelper()
| Method Detail |
|---|
public static <T> T createRequest(String messageLocation,
Class<T> targetClass)
T - messageSourceLocation - targetClass -
public static <T> T createRequest(Source messageSource,
Class<T> targetClass)
T - messageSource - targetClass -
public static <T> T createRequest(org.springframework.ws.test.server.RequestCreator requestCreator,
Class<T> targetClass)
MessageCreator to the targetClass.
T - requestCreator - targetClass -
public static org.springframework.ws.WebServiceMessage serialize(Object object)
WebServiceMessage.
object -
public static org.springframework.ws.test.server.ResponseActions validate(Object response)
response -
public static org.springframework.ws.test.server.ResponseActions validate(Object response,
Object request)
ResponseMatchers need to read data from request.
response - request -
public static org.springframework.ws.test.server.ResponseActions validate(org.springframework.ws.context.MessageContext messageContext)
MessageContext.
messageContext -
public static MessageHelper getMessageHelper()
public static void setMessageHelper(MessageHelper messageHelper)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||