public class SoapEndpointRule extends SoapServiceRule
| Constructor and Description |
|---|
SoapEndpointRule() |
SoapEndpointRule(int portRangeStart,
int portRangeEnd,
String... portNames) |
SoapEndpointRule(String... portNames) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
void |
clear()
Stop and remove endpoints, keeping port reservations.
|
void |
destroy() |
int |
getPort(String portName)
Returns the port number that was reserved for the given name.
|
Map<String,Integer> |
getPorts()
Returns all port names and respective port numbers.
|
static SoapEndpointRule |
newInstance() |
static SoapEndpointRule |
newInstance(int portRangeStart,
int portRangeEnd,
String... portNames) |
static SoapEndpointRule |
newInstance(String... portNames) |
<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.
|
void |
start()
(Re)start services.
|
void |
stop()
Stop services.
|
assertValidAddress, assertValidParams, mock, mock, mock, mock, mock, mock, parsePort, processProperties, properties, proxy, verifyPropertiespublic SoapEndpointRule()
public SoapEndpointRule(String... portNames)
public SoapEndpointRule(int portRangeStart,
int portRangeEnd,
String... portNames)
public static SoapEndpointRule newInstance()
public static SoapEndpointRule newInstance(String... portNames)
public static SoapEndpointRule newInstance(int portRangeStart, int portRangeEnd, String... portNames)
public int getPort(String portName)
portName - port namepublic Map<String,Integer> getPorts()
public <T> void proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations,
Map<String,Object> properties)
SoapServiceRuleproxy in class SoapServiceRuleT - 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.protected void before()
before in class org.junit.rules.ExternalResourceprotected void after()
after in class org.junit.rules.ExternalResourcepublic void clear()
public void destroy()
public void stop()
SoapServiceRulestop in class SoapServiceRulepublic void start()
SoapServiceRulestart in class SoapServiceRuleCopyright © 2023. All rights reserved.