public class SoapServiceRule
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
SoapServiceRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
void |
destroy()
Destroy endpoints.
|
<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,
String wsdlLocation)
Create (and start) service endpoint with mock delegate.
|
static SoapServiceRule |
newInstance() |
<T> void |
proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations)
Create (and start) endpoint.
|
void |
start()
(Re)start endpoints.
|
void |
stop()
Stop endpoints.
|
public static SoapServiceRule newInstance()
public <T> void proxy(T target,
Class<T> port,
String address,
String wsdlLocation,
List<String> schemaLocations)
target - instance calls are forwarded toport - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl location, or nullschemaLocations - schema locations, or nullpublic <T> T mock(Class<T> port, String address)
port - service classaddress - address, i.e. http://localhost:1234public <T> T mock(Class<T> port, String address, String wsdlLocation)
port - service classaddress - address, i.e. http://localhost:1234wsdlLocation - wsdl location, or nullpublic <T> T mock(Class<T> port, String address, List<String> schemaLocations)
port - service classaddress - address, i.e. http://localhost:1234schemaLocations - schema locations, or nullprotected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void destroy()
public void stop()
public void start()
Copyright © 2017. All rights reserved.