Discouraged users from using spring-cloud-contract-wiremock dependency directly

the preferred option is to use `spring-cloud-starter-stub-runner`

fixes gh-348
This commit is contained in:
Marcin Grzejszczak
2018-03-19 16:31:12 +01:00
parent 13902ecf1d
commit 51564ab444
8 changed files with 11 additions and 8 deletions

View File

@@ -1060,7 +1060,7 @@ for more details.
If you have a Spring Boot application that uses Tomcat as an embedded server (which is
the default with `spring-boot-starter-web`), you can add
`spring-cloud-contract-wiremock` to your classpath and add `@AutoConfigureWireMock` in
`spring-cloud-starter-contract-stub-runner` to your classpath and add `@AutoConfigureWireMock` in
order to be able to use Wiremock in your tests. Wiremock runs as a stub server and you
can register stub behavior using a Java API or via static JSON declarations as part of
your test. The following code shows an example:
@@ -1223,6 +1223,9 @@ errors. If you use the default `java.net` client, you do not need the annotation
won't do any harm). There is no support currently for other clients, but it may be added
in future releases.
To disable the custom `RestTemplateBuilder`, set the `wiremock.rest-template-ssl-enabled`
property to `false`.
=== WireMock and Spring MVC Mocks
Spring Cloud Contract provides a convenience class that can load JSON WireMock stubs into