| Interface | Description |
|---|---|
| Pact |
describes the interactions between a provider and a consumer. The annotated method has to be of following signature: public PactFragment providerDef1(PactDslWithProvider builder) {...}
|
| PactVerification |
Before each test, a mock server will be setup at given port/host that will provide mocked responses. after each test, it will be teared down.
|
| PactVerifications |
| Class | Description |
|---|---|
| BaseProviderRule | |
| ConsumerPactTest | |
| ConsumerPactTestMk2 | |
| MessagePactBuilder |
PACT DSL builder for v3 specification
|
| MessagePactProviderRule |
A junit rule that wraps every test annotated with PactVerification.
|
| PactHttpsProviderRuleMk2 |
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port.
|
| PactProviderRule |
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to localhost. If no port is given, it will default to a random port.
|
| PactProviderRuleMk2 |
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port. If you need to use HTTPS, use PactHttpsProviderRuleMk2
|
| PactRule |
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses. after each test, it will be teared down. If no host is given, it will default to localhost. If no port is given, it will default to a random port.
|
| Exception | Description |
|---|---|
| PactMismatchException | |
| PactMismatchesException |