@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface VersionedPactUrl
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.jsonpact loader| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
urls |
| Modifier and Type | Optional Element and Description |
|---|---|
Authentication |
auth
Authentication to use, if needed.
|
public abstract Authentication auth