public class ProxyRule extends Object implements org.junit.rules.TestRule
| Constructor and Description |
|---|
ProxyRule(Integer port,
Object target)
Start the proxy prior to test execution and stop the proxy after the tests have completed.
|
ProxyRule(Integer port,
Object target,
boolean perTestSuite)
Start the proxy prior to test execution and stop the proxy after the tests have completed.
|
ProxyRule(Object target)
Start the proxy prior to test execution and stop the proxy after the tests have completed.
|
ProxyRule(Object target,
boolean perTestSuite)
Start the proxy prior to test execution and stop the proxy after the tests have completed.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
Integer |
getHttpPort() |
public ProxyRule(Object target)
target - an instance of the test being executedpublic ProxyRule(Object target, boolean perTestSuite)
target - an instance of the test being executedperTestSuite - indicates how many instances of the proxy are created
if true a single proxy is created per JVM
if false one instance per test class is createdpublic ProxyRule(Integer port, Object target)
port - the HTTP(S) port for the proxytarget - an instance of the test being executedpublic ProxyRule(Integer port, Object target, boolean perTestSuite)
port - the HTTP(S) port for the proxytarget - an instance of the test being executedperTestSuite - indicates how many instances of the proxy are created
if true a single proxy is created per JVM
if false one instance per test class is createdpublic Integer getHttpPort()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleCopyright © 2018. All rights reserved.