public MockServer
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Returns the port of the mock server. This will be the port the server is bound to.
|
java.lang.String |
getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
|
PactVerificationResult |
runAndWritePact(au.com.dius.pact.model.RequestResponsePact pact,
au.com.dius.pact.model.PactSpecVersion pactVersion,
PactTestRun testFn)
This will start the mock server and execute the test function. Returns the result of running the test.
|
PactVerificationResult |
validateMockServerState()
Returns the results of validating the mock server state
|
java.lang.String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
int getPort()
Returns the port of the mock server. This will be the port the server is bound to.
PactVerificationResult runAndWritePact(au.com.dius.pact.model.RequestResponsePact pact, au.com.dius.pact.model.PactSpecVersion pactVersion, PactTestRun testFn)
This will start the mock server and execute the test function. Returns the result of running the test.
PactVerificationResult validateMockServerState()
Returns the results of validating the mock server state