net.javacrumbs.smock.springws.client
Class SmockClient
java.lang.Object
net.javacrumbs.smock.common.SmockCommon
net.javacrumbs.smock.common.client.CommonSmockClient
net.javacrumbs.smock.springws.client.SmockClient
public abstract class SmockClient
- extends CommonSmockClient
Adds extra features to Spring WS client test support.
- Author:
- Lukas Krecan
|
Method Summary |
static org.springframework.ws.test.client.MockWebServiceServer |
createServer(org.springframework.context.ApplicationContext applicationContext,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
Creates a MockWebServiceServer instance based on the given ApplicationContext. |
static org.springframework.ws.test.client.MockWebServiceServer |
createServer(org.springframework.ws.client.core.support.WebServiceGatewaySupport gatewaySupport,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
Creates a MockWebServiceServer instance based on the given WebServiceGatewaySupport. |
static org.springframework.ws.test.client.MockWebServiceServer |
createServer(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
Creates a MockWebServiceServer instance based on the given WebServiceTemplate. |
| 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 |
SmockClient
public SmockClient()
createServer
public static org.springframework.ws.test.client.MockWebServiceServer createServer(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
- Creates a
MockWebServiceServer instance based on the given WebServiceTemplate.
Supports interceptors that will be applied on the incomming message. Please note that acctually the interceptoes will
be added to the ClientInterceptor set on the client side. it's an ugly hack, but that's the only way to do it
without reimplementing the whole testing library. I hope it will change in next releases.
- Parameters:
webServiceTemplate - the web service template
- Returns:
- the created server
createServer
public static org.springframework.ws.test.client.MockWebServiceServer createServer(org.springframework.ws.client.core.support.WebServiceGatewaySupport gatewaySupport,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
- Creates a
MockWebServiceServer instance based on the given WebServiceGatewaySupport.
Supports interceptors that will be applied on the incomming message. Please note that acctually the interceptoes will
be added to the ClientInterceptor set on the client side. it's an ugly hack, but that's the only way to do it
without reimplementing the whole testing library. I hope it will change in next releases.
- Parameters:
gatewaySupport - interceptors -
- Returns:
createServer
public static org.springframework.ws.test.client.MockWebServiceServer createServer(org.springframework.context.ApplicationContext applicationContext,
org.springframework.ws.server.EndpointInterceptor[] interceptors)
- Creates a
MockWebServiceServer instance based on the given ApplicationContext.
Supports interceptors that will be applied on the incomming message. Please note that acctually the interceptoes will
be added to the ClientInterceptor set on the client side. it's an ugly hack, but that's the only way to do it
without reimplementing the whole testing library. I hope it will change in next releases.
- Parameters:
applicationContext - interceptors -
- Returns:
Copyright © 2011. All Rights Reserved.