|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockserver.junit.ProxyRule
public class ProxyRule
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
|
Integer |
getHttpPort()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyRule(Object target)
target - an instance of the test being executed
public 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 created
public ProxyRule(Integer port,
Object target)
port - the HTTP(S) port for the proxytarget - an instance of the test being executed
public 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 created| Method Detail |
|---|
public 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.TestRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||