For the latest stable version, please use spring-cloud-contract 4.2.0! |
Common Properties
This section briefly describes common properties, including:
Common Properties for JUnit and Spring
You can set repetitive properties by using system properties or Spring configuration properties. The following table shows their names with their default values:
Property name | Default value | Description |
---|---|---|
|
|
Minimum value of a port for a started WireMock with stubs. |
|
|
Maximum value of a port for a started WireMock with stubs. |
|
Maven repository URL. If blank, then call the local Maven repo. |
|
|
|
Default classifier for the stub artifacts. |
|
|
The way you want to fetch and register the stubs. |
|
Array of Ivy notation stubs to download. |
|
|
Optional username to access the tool that stores the JARs with stubs. |
|
|
Optional password to access the tool that stores the JARs with stubs. |
|
|
|
Set to |
|
If you want to use a stub for each consumer and want to override the consumer name, change this value. |
Stub Runner Stubs IDs
You can set the stubs to download in the stubrunner.ids
system property. They
use the following pattern:
groupId:artifactId:version:classifier:port
Note that version
, classifier
, and port
are optional.
-
If you do not provide the
port
, a random one is picked. -
If you do not provide the
classifier
, the default is used. (Note that you can pass an empty classifier this way:groupId:artifactId:version:
). -
If you do not provide the
version
, then+
is passed, and the latest one is downloaded.
port
means the port of the WireMock server.
Starting with version 1.0.4, you can provide a range of versions that you would like the Stub Runner to take into consideration. You can read more about the Aether versioning ranges here. |