public class KTorMockServer
extends BaseMockServer
| Modifier and Type | Class and Description |
|---|---|
static class |
KTorMockServer.Companion |
| Modifier and Type | Field and Description |
|---|---|
static KTorMockServer.Companion |
Companion |
| Constructor and Description |
|---|
KTorMockServer(au.com.dius.pact.core.model.RequestResponsePact pact,
MockProviderConfig config,
long stopTimeout) |
| 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.
|
long |
getStopTimeout() |
java.lang.String |
getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
|
void |
start() |
void |
stop() |
generatePactResponse, getConfig, getPact, runAndWritePact, start, stop, validateMockServerState, verifyResultAndWritePact, waitForServergetPort, getUrl, runAndWritePact, validateMockServerStatepublic static KTorMockServer.Companion Companion
public KTorMockServer(au.com.dius.pact.core.model.RequestResponsePact pact,
MockProviderConfig config,
long stopTimeout)
public java.lang.String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
public int getPort()
Returns the port of the mock server. This will be the port the server is bound to.
public void start()
public void stop()
public long getStopTimeout()