public PactTestFor
Main test annotation for a JUnit 5 test
Modifier and Type | Method and Description |
---|---|
java.lang.String |
hostInterface()
Host interface to use for the mock server.
|
java.lang.String |
pactMethod()
Test method that provides the Pact to use for the test.
|
au.com.dius.pact.model.PactSpecVersion |
pactVersion()
Pact specification version to support.
|
java.lang.String |
port()
Port number to bind to.
|
java.lang.String |
providerName()
Providers name.
|
ProviderType |
providerType()
Type of provider
|
java.lang.String providerName()
Providers name.
This will be recorded in the pact file
java.lang.String hostInterface()
Host interface to use for the mock server.
Only used for synchronous provider tests and defaults to theloopback adapter (127.0.0.1).
java.lang.String port()
Port number to bind to.
Only used for synchronous provider tests and defaults to 0, which causes a random free port to be chosen.
au.com.dius.pact.model.PactSpecVersion pactVersion()
Pact specification version to support.
Default is V3.
java.lang.String pactMethod()
Test method that provides the Pact to use for the test.
Default behaviour is to use the first one found.
ProviderType providerType()
Type of provider
(synchronous HTTP or asynchronous messages)