public abstract class SoapServiceRule
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
SoapServiceRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertValidAddress(String address) |
protected <T> void |
assertValidParams(T target,
Class<T> port,
String address) |
<T> T |
mock(Class<T> port,
String address)
Create (and start) service endpoint with mock delegate.
|
<T> T |
mock(Class<T> port,
String address,
List<String> schemaLocations)
Create (and start) service endpoint with mock delegate.
|
<T> T |
mock(Class<T> port,
String address,
List<String> schemaLocations,
Map<String,Object> properties)
Create (and start) service with mock delegate and additional properties.
|
<T> T |
mock(Class<T> port,
String address,
Map<String,Object> properties)
Create (and start) service endpoint with mock delegate.
|
<T> T |
mock(Class<T> port,
String address,
String wsdlLocation)
Create (and start) service endpoint with mock delegate.
|
<T> T |
mock(Class<T> port,
String address,
String wsdlLocation,
Map<String,Object> properties)
Create (and start) service endpoint with mock delegate.
|
static SoapServiceRule |
newInstance() |
static SoapEndpointRule |
newInstance(int portRangeStart,
int portRangeEnd,
String... portNames) |
static SoapEndpointRule |
newInstance(String... portNames) |
protected int |
parsePort(String address) |
protected Map<String,Object> |
processProperties(Map<String,Object> properties,
String wsdlLocation,
List<String> schemaLocations) |
static Map<String,Object> |
properties(Object... properties) |
<T> void |
proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations)
Create (and start) an endpoint.
|
abstract <T> void |
proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations,
Map<String,Object> properties)
Create (and start) an endpoint with the given properties.
|
abstract void |
start()
(Re)start services.
|
abstract void |
stop()
Stop services.
|
protected static void |
verifyProperties(Object... properties) |
public static SoapServiceRule newInstance()
public static SoapEndpointRule newInstance(String... portNames)
public static SoapEndpointRule newInstance(int portRangeStart, int portRangeEnd, String... portNames)
public <T> void proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations)
T - the type of the mocked classtarget - instance calls are forwarded toport - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl location, or nullschemaLocations - schema locations, or nullpublic abstract <T> void proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations,
Map<String,Object> properties)
T - the type of the mocked classtarget - instance calls are forwarded toport - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl location, or nullschemaLocations - schema locations, or nullproperties - additional properties, like mtom-enabled etc.public <T> T mock(Class<T> port, String address)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234public <T> T mock(Class<T> port, String address, Map<String,Object> properties)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234properties - additional properties, like mtom-enabled etc.public <T> T mock(Class<T> port, String address, String wsdlLocation)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl locationpublic <T> T mock(Class<T> port, String address, String wsdlLocation, Map<String,Object> properties)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl locationproperties - additional properties, like mtom-enabled etc.public <T> T mock(Class<T> port, String address, List<String> schemaLocations)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234schemaLocations - schema locationspublic <T> T mock(Class<T> port, String address, List<String> schemaLocations, Map<String,Object> properties)
T - class to be mockedport - service classaddress - address, i.e. http://localhost:1234schemaLocations - schema locationsproperties - additional properties, like mtom-enabled and soprotected void assertValidAddress(String address)
protected int parsePort(String address)
protected Map<String,Object> processProperties(Map<String,Object> properties, String wsdlLocation, List<String> schemaLocations)
protected static void verifyProperties(Object... properties)
public abstract void stop()
public abstract void start()
Copyright © 2023. All rights reserved.