public class VirtualServerRule
extends org.junit.rules.ExternalResource
implements com.ca.codesv.api.VirtualServiceBuilder
TestRule entry point for using API in tests. This class can be only
used with Rule annotation for initializing a virtual server. Using ClassRule annotation with this class is not supported.| Constructor and Description |
|---|
VirtualServerRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
<T extends com.ca.codesv.sdk.Connection,R extends com.ca.codesv.sdk.ResponseBuilder> |
forProtocol(com.ca.codesv.sdk.Protocol<T,R> protocol) |
protected void before()
throws java.lang.Throwable
before in class org.junit.rules.ExternalResourcejava.lang.Throwableprotected void after()
after in class org.junit.rules.ExternalResourcepublic <T extends com.ca.codesv.sdk.Connection,R extends com.ca.codesv.sdk.ResponseBuilder> com.ca.codesv.api.ProtocolServer<T,R> forProtocol(com.ca.codesv.sdk.Protocol<T,R> protocol)
forProtocol in interface com.ca.codesv.api.VirtualServiceBuilder