| Interface | Description |
|---|---|
| PactBroker |
Used to point Pact runner to source of pacts for contract tests Default values can be set by setting the `pactbroker.*` system properties
|
| PactBrokerAuth |
Defines the authentication scheme to use with the pact broker
|
| PactFilter |
Annotation to filter pacts by provider state. Supports regular expressions.
|
| PactFolder |
Used to point Pact runner to source of pacts for contract tests
|
| PactLoader |
Encapsulate logic for loading pacts
|
| PactSource |
Point out which PactLoader use for pact loading
|
| PactUrl |
Used to point Pact runner to source of pacts for contract tests
|
| VersionedPactUrl |
Used to point Pact runner to a versioned source of pacts for contract tests. Use ${any.variable} in the url and specify any.variable as a system property. For example, when you annotate a provider test class with:
And pass a system property foo.version to the JVM, for example -Dfoo.version=123 Then the pact tests will fetch the following contract: |
| Class | Description |
|---|---|
| PactBrokerLoader |
Out-of-the-box implementation of PactLoader that downloads pacts from Pact broker
|
| PactFolderLoader<I extends Interaction> |
Out-of-the-box implementation of
interface PactLoader
that loads pacts from either a subfolder of project resource folder or a directory |
| PactUrlLoader |
Implementation of PactLoader that downloads pacts from given urls
|
| VersionedPactUrlLoader |
Implementation of PactLoader that downloads pacts from given urls containing versions to be filtered in from system properties.
|
| Exception | Description |
|---|---|
| NoPactsFoundException |