Interface | Description |
---|---|
DefaultRequestValues |
Marker annotation for a method that will setup the default request values used in the test. The annotated method must take a single parameter of PactDslRequestWithoutPath and set the default values on that object
|
DefaultResponseValues |
Marker annotation for a method that will setup the default response values used in the test The annotated method must take a single parameter of PactDslResponse and set the default values on that object
|
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 | |
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 |