Configuration of the Pact Mock Server. By default this class will setup the configuration for a http mock server running on local host and a random port
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
LOCALHOST |
|
static int |
portLowerBound |
@deprecated Set the port to zero to get the OS to assign a random port |
static int |
portUpperBound |
@deprecated Set the port to zero to get the OS to assign a random port |
| Type | Name and description |
|---|---|
java.lang.String |
hostname |
au.com.dius.pact.model.PactSpecVersion |
pactVersion |
int |
port |
java.lang.String |
scheme |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.net.InetSocketAddress |
address() |
|
static MockProviderConfig |
create(int lower, int upper, au.com.dius.pact.model.PactSpecVersion pactVersion)@deprecated Set the port to zero to get the OS to assign a random port |
|
static MockProviderConfig |
create(java.lang.String hostname, int lower, int upper, au.com.dius.pact.model.PactSpecVersion pactVersion)@deprecated Set the port to zero to get the OS to assign a random port |
|
static MockProviderConfig |
createDefault() |
|
static MockProviderConfig |
createDefault(au.com.dius.pact.model.PactSpecVersion pactVersion) |
|
static MockProviderConfig |
createDefault(java.lang.String host, au.com.dius.pact.model.PactSpecVersion pactVersion) |
|
static MockProviderConfig |
httpConfig(java.lang.String hostname = LOCALHOST, int port = 0, au.com.dius.pact.model.PactSpecVersion pactVersion = PactSpecVersion.V2) |
|
static int |
randomPort(int lower, int upper)@deprecated Set the port to zero to get the OS to assign a random port |
|
java.lang.String |
url() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |