diff --git a/README.adoc b/README.adoc index 8115833f80..2436383652 100644 --- a/README.adoc +++ b/README.adoc @@ -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 diff --git a/docs/src/main/asciidoc/spring-cloud-wiremock.adoc b/docs/src/main/asciidoc/spring-cloud-wiremock.adoc index 49069facb7..31f946539c 100644 --- a/docs/src/main/asciidoc/spring-cloud-wiremock.adoc +++ b/docs/src/main/asciidoc/spring-cloud-wiremock.adoc @@ -11,7 +11,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: diff --git a/samples/standalone/restdocs/http-server/build.gradle b/samples/standalone/restdocs/http-server/build.gradle index 7a23f84dfb..d1fc271858 100644 --- a/samples/standalone/restdocs/http-server/build.gradle +++ b/samples/standalone/restdocs/http-server/build.gradle @@ -43,7 +43,7 @@ dependencies { testCompile 'org.springframework.boot:spring-boot-starter-test' testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc' - testCompile 'org.springframework.cloud:spring-cloud-contract-wiremock' + testCompile 'org.springframework.cloud:spring-cloud-starter-contract-stub-runner' } test { diff --git a/samples/standalone/restdocs/http-server/pom.xml b/samples/standalone/restdocs/http-server/pom.xml index debf295992..93874b892d 100644 --- a/samples/standalone/restdocs/http-server/pom.xml +++ b/samples/standalone/restdocs/http-server/pom.xml @@ -46,7 +46,7 @@ org.springframework.cloud - spring-cloud-contract-wiremock + spring-cloud-starter-contract-stub-runner test diff --git a/samples/wiremock-jetty/pom.xml b/samples/wiremock-jetty/pom.xml index d7a6f4bb62..5289d854a4 100644 --- a/samples/wiremock-jetty/pom.xml +++ b/samples/wiremock-jetty/pom.xml @@ -45,7 +45,7 @@ org.springframework.cloud - spring-cloud-contract-wiremock + spring-cloud-starter-contract-stub-runner test diff --git a/samples/wiremock-tomcat/pom.xml b/samples/wiremock-tomcat/pom.xml index 256eaedc51..ff13a5c608 100644 --- a/samples/wiremock-tomcat/pom.xml +++ b/samples/wiremock-tomcat/pom.xml @@ -35,7 +35,7 @@ org.springframework.cloud - spring-cloud-contract-wiremock + spring-cloud-starter-contract-stub-runner test diff --git a/samples/wiremock-undertow-ssl/pom.xml b/samples/wiremock-undertow-ssl/pom.xml index 1cb88a9edc..f5b70fb96f 100644 --- a/samples/wiremock-undertow-ssl/pom.xml +++ b/samples/wiremock-undertow-ssl/pom.xml @@ -45,7 +45,7 @@ org.springframework.cloud - spring-cloud-contract-wiremock + spring-cloud-starter-contract-stub-runner test diff --git a/samples/wiremock-undertow/pom.xml b/samples/wiremock-undertow/pom.xml index 43c69dad04..43d6609399 100644 --- a/samples/wiremock-undertow/pom.xml +++ b/samples/wiremock-undertow/pom.xml @@ -45,7 +45,7 @@ org.springframework.cloud - spring-cloud-contract-wiremock + spring-cloud-starter-contract-stub-runner test