|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockserver.junit.MockServerRule
public class MockServerRule
| Constructor Summary | |
|---|---|
MockServerRule(Object target)
Start the MockServer prior to test execution and stop the MockServer after the tests have completed. |
|
MockServerRule(Object target,
boolean perTestSuite)
Start the MockServer prior to test execution and stop the MockServer after the tests have completed. |
|
MockServerRule(Object target,
boolean perTestSuite,
Integer... port)
Start the proxy prior to test execution and stop the proxy after the tests have completed. |
|
MockServerRule(Object target,
Integer... port)
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 |
getPort()
|
Integer[] |
getPorts()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockServerRule(Object target)
target - an instance of the test being executed
public MockServerRule(Object target,
boolean perTestSuite)
target - an instance of the test being executedperTestSuite - indicates how many instances of MockServer are created
if true a single MockServer is created per JVM
if false one instance per test class is created
public MockServerRule(Object target,
Integer... port)
target - an instance of the test being executedport - the HTTP(S) port for the proxy
public MockServerRule(Object target,
boolean perTestSuite,
Integer... port)
target - an instance of the test being executedperTestSuite - indicates how many instances of MockServer are createdport - the HTTP(S) port for the proxy| Method Detail |
|---|
public Integer getPort()
public Integer[] getPorts()
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 | |||||||||