public class ServerTestHelper extends CommonSmockServer
| Constructor and Description |
|---|
ServerTestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createRequest(org.springframework.ws.test.server.RequestCreator requestCreator,
Class<T> targetClass)
Deserializes message created by the
MessageCreator to the targetClass. |
static <T> T |
createRequest(Source messageSource,
Class<T> targetClass)
Deserializes message loaded from messageSource to the targetClass.
|
static <T> T |
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.
|
message, message, message, message, withMessage, withMessage, withMessage, withMessagecreateMessageFactory, createMessageFactory, createMessageFactory, createSource, fromResource, getResourceLoader, getTemplateProcessor, loadDocument, resource, setResourceLoader, setTemplateProcessorpublic 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)
Copyright © 2017. All Rights Reserved.