public 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:
@VersionedPactUrl(urls = {"http://artifactory:8081/artifactory/consumercontracts/foo-bar/${foo.version}/foo-bar-${foo.version}.json"})
And pass a system property foo.version to the JVM, for example -Dfoo.version=123 Then the pact tests will fetch the following contract:
http://artifactory:8081/artifactory/consumercontracts/foo-bar/123/foo-bar-123.json
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
urls() |