From f6e2c1a54ec09f689c22481c56818e99c5329c2a Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 26 May 2017 13:24:06 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- .../checkstyle.rss | 30 +- .../plugin-management.html | 72 +-- .../plugins.html | 86 ++- spring-cloud-contract.html | 509 +++++++++--------- 4 files changed, 318 insertions(+), 379 deletions(-) diff --git a/spring-cloud-contract-maven-plugin/checkstyle.rss b/spring-cloud-contract-maven-plugin/checkstyle.rss index a77c116c51..8287aec20a 100644 --- a/spring-cloud-contract-maven-plugin/checkstyle.rss +++ b/spring-cloud-contract-maven-plugin/checkstyle.rss @@ -127,20 +127,6 @@ under the License. 0 - - - - org/springframework/cloud/contract/maven/verifier/stubrunner/RemoteStubRunner.java - - - 0 - - - 0 - - - 0 - @@ -158,7 +144,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/ManifestCreator.java + org/springframework/cloud/contract/maven/verifier/stubrunner/RemoteStubRunner.java 0 @@ -183,6 +169,20 @@ under the License. 0 + + + + org/springframework/cloud/contract/maven/verifier/ManifestCreator.java + + + 0 + + + 0 + + + 0 + diff --git a/spring-cloud-contract-maven-plugin/plugin-management.html b/spring-cloud-contract-maven-plugin/plugin-management.html index 91feb171b6..40facd1210 100644 --- a/spring-cloud-contract-maven-plugin/plugin-management.html +++ b/spring-cloud-contract-maven-plugin/plugin-management.html @@ -337,55 +337,23 @@ org.apache.maven.plugins maven-assembly-plugin -2.6 - -org.apache.maven.plugins -maven-clean-plugin -2.6.1 - -org.apache.maven.plugins -maven-compiler-plugin -3.1 +2.2-beta-5 org.apache.maven.plugins maven-dependency-plugin -2.10 - -org.apache.maven.plugins -maven-deploy-plugin -2.8.2 - -org.apache.maven.plugins -maven-eclipse-plugin -2.10 +2.8 org.apache.maven.plugins maven-enforcer-plugin 1.4.1 org.apache.maven.plugins -maven-failsafe-plugin -2.18.1 +maven-failsafe-plugin +2.20 org.apache.maven.plugins -maven-help-plugin -2.2 - -org.apache.maven.plugins -maven-install-plugin -2.5.2 - -org.apache.maven.plugins -maven-invoker-plugin -1.10 - -org.apache.maven.plugins maven-jar-plugin 3.0.0 - -org.apache.maven.plugins -maven-javadoc-plugin -2.10.4 org.apache.maven.plugins maven-plugin-plugin @@ -404,36 +372,20 @@ 2.2 org.apache.maven.plugins -maven-site-plugin -3.5.1 - -org.apache.maven.plugins -maven-source-plugin -2.4 - -org.apache.maven.plugins maven-surefire-plugin -2.18.1 +2.12.4 org.apache.maven.plugins -maven-war-plugin -2.6 +maven-war-plugin +3.1.0 org.codehaus.gmavenplus gmavenplus-plugin 1.5 org.codehaus.mojo -build-helper-maven-plugin -1.10 - -org.codehaus.mojo exec-maven-plugin -1.5.0 - -org.codehaus.mojo -versions-maven-plugin -2.2 +1.6.0 org.codehaus.plexus plexus-component-metadata @@ -447,14 +399,10 @@ coveralls-maven-plugin 4.1.0 -org.jooq -jooq-codegen-maven -3.9.1 - org.springframework.boot spring-boot-maven-plugin -1.5.3.BUILD-SNAPSHOT - +1.5.4.BUILD-SNAPSHOT + pl.project13.maven git-commit-id-plugin 2.1.11 diff --git a/spring-cloud-contract-maven-plugin/plugins.html b/spring-cloud-contract-maven-plugin/plugins.html index 8b073e4d6c..683d9c3522 100644 --- a/spring-cloud-contract-maven-plugin/plugins.html +++ b/spring-cloud-contract-maven-plugin/plugins.html @@ -345,79 +345,67 @@ org.apache.maven.plugins maven-deploy-plugin -2.8.2 +2.7 org.apache.maven.plugins -maven-failsafe-plugin -2.18.1 +maven-failsafe-plugin +2.20 org.apache.maven.plugins -maven-help-plugin -2.2 - -org.apache.maven.plugins maven-install-plugin -2.5.2 - -org.apache.maven.plugins -maven-jar-plugin -3.0.0 - -org.apache.maven.plugins -maven-javadoc-plugin -2.10.4 - -org.apache.maven.plugins -maven-plugin-plugin -3.4 - -org.apache.maven.plugins -maven-resources-plugin -2.6 - -org.apache.maven.plugins -maven-scm-publish-plugin -1.1 - -org.apache.maven.plugins -maven-site-plugin -3.4 - -org.apache.maven.plugins -maven-source-plugin 2.4 org.apache.maven.plugins -maven-surefire-plugin -2.18.1 +maven-jar-plugin +3.0.0 +org.apache.maven.plugins +maven-javadoc-plugin +2.10.4 + +org.apache.maven.plugins +maven-plugin-plugin +3.4 + +org.apache.maven.plugins +maven-resources-plugin +2.6 + +org.apache.maven.plugins +maven-scm-publish-plugin +1.1 + +org.apache.maven.plugins +maven-site-plugin +3.4 + +org.apache.maven.plugins +maven-source-plugin +2.4 + +org.apache.maven.plugins +maven-surefire-plugin +2.12.4 + org.codehaus.gmavenplus gmavenplus-plugin 1.5 - + org.codehaus.mojo animal-sniffer-maven-plugin 1.14 - -org.codehaus.mojo -build-helper-maven-plugin -1.10 -org.codehaus.mojo -xml-maven-plugin -1.0 - org.codehaus.plexus plexus-component-metadata 1.6 - + org.eluder.coveralls coveralls-maven-plugin 4.1.0 - + org.jacoco http://jacoco-maven-plugin -0.7.7.201606060606 +0.7.9

Project Report Plugins

diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index eca5306a9d..6986fff4e2 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1073,7 +1073,7 @@ Contract tests are used to test contracts between applications and not to simula
-
package contracts
+
package contracts
 
 org.springframework.cloud.contract.spec.Contract.make {
 	request { // (1)
@@ -1145,7 +1145,7 @@ You would like to feed that instance with a proper stub definition.

-
ResponseEntity<FraudServiceResponse> response =
+
ResponseEntity<FraudServiceResponse> response =
 		restTemplate.exchange("http://localhost:" + port + "/fraudcheck", HttpMethod.PUT,
 				new HttpEntity<>(request, httpHeaders),
 				FraudServiceResponse.class);
@@ -1156,7 +1156,7 @@ You would like to feed that instance with a proper stub definition.

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment=WebEnvironment.NONE)
 @AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:6565"}, workOffline = true)
 @DirtiesContext
@@ -1183,7 +1183,7 @@ that your application behaves in the same way as you define in your stub.

-
@Test
+
@Test
 public void validate_shouldMarkClientAsFraud() throws Exception {
     // given:
         MockMvcRequestSpecification request = given()
@@ -1246,7 +1246,7 @@ all the contract are present in the producer’s repository
 
Maven
-
<repositories>
+
<repositories>
 	<repository>
 		<id>spring-snapshots</id>
 		<name>Spring Snapshots</name>
@@ -1303,7 +1303,7 @@ all the contract are present in the producer’s repository
 
Gradle
-
repositories {
+
repositories {
 	mavenCentral()
 	mavenLocal()
 	maven { url "http://repo.spring.io/snapshot" }
@@ -1323,7 +1323,7 @@ all the contract are present in the producer’s repository
 
-
@Test
+
@Test
 public void shouldBeRejectedDueToAbnormalLoanAmount() {
 	// given:
 	LoanApplication application = new LoanApplication(new Client("1234567890"),
@@ -1348,7 +1348,7 @@ public void shouldBeRejectedDueToAbnormalLoanAmount() {
 
-
ResponseEntity<FraudServiceResponse> response =
+
ResponseEntity<FraudServiceResponse> response =
 		restTemplate.exchange("http://localhost:" + port + "/fraudcheck", HttpMethod.PUT,
 				new HttpEntity<>(request, httpHeaders),
 				FraudServiceResponse.class);
@@ -1368,7 +1368,7 @@ public void shouldBeRejectedDueToAbnormalLoanAmount() {
-
git clone https://your-git-server.com/server-side.git local-http-server-repo
+
git clone https://your-git-server.com/server-side.git local-http-server-repo
@@ -1392,7 +1392,7 @@ is important cause we’ll reference that folder in the producer’s tes
-
package contracts
+
package contracts
 
 org.springframework.cloud.contract.spec.Contract.make {
 	request { // (1)
@@ -1524,7 +1524,7 @@ It’s really important that you understand the map notation to set up contr
 
-
<dependencyManagement>
+
<dependencyManagement>
 	<dependencies>
 		<dependency>
 			<groupId>org.springframework.cloud</groupId>
@@ -1542,7 +1542,7 @@ It’s really important that you understand the map notation to set up contr
 
-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<version>${spring-cloud-contract.version}</version>
@@ -1571,7 +1571,7 @@ It’s really important that you understand the map notation to set up contr
 
-
cd local-http-server-repo
+
cd local-http-server-repo
 ./mvnw clean install -DskipTests
@@ -1580,7 +1580,7 @@ It’s really important that you understand the map notation to set up contr
-
[INFO] --- spring-cloud-contract-maven-plugin:1.0.0.BUILD-SNAPSHOT:generateStubs (default-generateStubs) @ http-server ---
+
[INFO] --- spring-cloud-contract-maven-plugin:1.0.0.BUILD-SNAPSHOT:generateStubs (default-generateStubs) @ http-server ---
 [INFO] Building jar: /some/path/http-server/target/http-server-0.0.1-SNAPSHOT-stubs.jar
 [INFO]
 [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ http-server ---
@@ -1599,7 +1599,7 @@ It’s really important that you understand the map notation to set up contr
 
-
[INFO] Installing /some/path/http-server/target/http-server-0.0.1-SNAPSHOT-stubs.jar to /path/to/your/.m2/repository/com/example/http-server/0.0.1-SNAPSHOT/http-server-0.0.1-SNAPSHOT-stubs.jar
+
[INFO] Installing /some/path/http-server/target/http-server-0.0.1-SNAPSHOT-stubs.jar to /path/to/your/.m2/repository/com/example/http-server/0.0.1-SNAPSHOT/http-server-0.0.1-SNAPSHOT-stubs.jar
@@ -1616,7 +1616,7 @@ It’s really important that you understand the map notation to set up contr
-
<dependencyManagement>
+
<dependencyManagement>
 	<dependencies>
 		<dependency>
 			<groupId>org.springframework.cloud</groupId>
@@ -1634,7 +1634,7 @@ It’s really important that you understand the map notation to set up contr
 
-
<dependency>
+
<dependency>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
 	<scope>test</scope>
@@ -1646,7 +1646,7 @@ It’s really important that you understand the map notation to set up contr
 
-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment=WebEnvironment.NONE)
 @AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:6565"}, workOffline = true)
 @DirtiesContext
@@ -1658,7 +1658,7 @@ public class LoanApplicationServiceTests {
-
2016-07-19 14:22:25.403  INFO 41050 --- [           main] o.s.c.c.stubrunner.AetherStubDownloader  : Desired version is + - will try to resolve the latest version
+
2016-07-19 14:22:25.403  INFO 41050 --- [           main] o.s.c.c.stubrunner.AetherStubDownloader  : Desired version is + - will try to resolve the latest version
 2016-07-19 14:22:25.438  INFO 41050 --- [           main] o.s.c.c.stubrunner.AetherStubDownloader  : Resolved version is 0.0.1-SNAPSHOT
 2016-07-19 14:22:25.439  INFO 41050 --- [           main] o.s.c.c.stubrunner.AetherStubDownloader  : Resolving artifact com.example:http-server:jar:stubs:0.0.1-SNAPSHOT using remote repositories []
 2016-07-19 14:22:25.451  INFO 41050 --- [           main] o.s.c.c.stubrunner.AetherStubDownloader  : Resolved artifact com.example:http-server:jar:stubs:0.0.1-SNAPSHOT to /path/to/your/.m2/repository/com/example/http-server/0.0.1-SNAPSHOT/http-server-0.0.1-SNAPSHOT-stubs.jar
@@ -1693,7 +1693,7 @@ public class LoanApplicationServiceTests {
-
@RequestMapping(value = "/fraudcheck", method = PUT)
+
@RequestMapping(value = "/fraudcheck", method = PUT)
 public FraudCheckResult fraudCheck(@RequestBody FraudCheck fraudCheck) {
 return new FraudCheckResult(FraudCheckStatus.OK, NO_REASON);
 }
@@ -1704,7 +1704,7 @@ return new FraudCheckResult(FraudCheckStatus.OK, NO_REASON);
-
git checkout -b contract-change-pr master
+
git checkout -b contract-change-pr master
 git pull https://your-git-server.com/server-side-fork.git contract-change-pr
@@ -1713,7 +1713,7 @@ git pull https://your-git-server.com/server-side-fork.git contract-change-pr
-
<dependency>
+
<dependency>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-starter-contract-verifier</artifactId>
 	<scope>test</scope>
@@ -1725,7 +1725,7 @@ git pull https://your-git-server.com/server-side-fork.git contract-change-pr
 
 
-
stubrunner:
+
stubrunner:
   ids: 'com.example:http-server-dsl:+:stubs:8080'
   repositoryRoot: http://repo.spring.io/libs-snapshot
@@ -1998,7 +1998,7 @@ Imagine the following JSON request

-
{
+
{
     "time" : "2016-10-10 20:10:15",
     "id" : "9febab1c-6f36-4a0b-88d6-3b6a6d81cd4a",
     "body" : "foo"
@@ -2010,7 +2010,7 @@ Imagine the following JSON request

-
{
+
{
     "time" : "2016-10-10 21:10:15",
     "id" : "c4231e1f-3ca9-48d3-b7e7-567d55f0d051",
     "body" : "bar"
@@ -2030,7 +2030,7 @@ you would like the stub to work like this:

-
{
+
{
     "time" : "SOMETHING THAT MATCHES TIME",
     "id" : "SOMETHING THAT MATCHES UUID",
     "body" : "foo"
@@ -2042,7 +2042,7 @@ you would like the stub to work like this:

-
{
+
{
     "time" : "2016-10-10 21:10:15",
     "id" : "c4231e1f-3ca9-48d3-b7e7-567d55f0d051",
     "body" : "bar"
@@ -2057,7 +2057,7 @@ producer’s backend can work on. Such a JSON would be a valid one:

-
{
+
{
     "time" : "2016-10-10 20:10:15",
     "id" : "9febab1c-6f36-4a0b-88d6-3b6a6d81cd4a",
     "body" : "foo"
@@ -2072,7 +2072,7 @@ what you might want is the following response:

-
{
+
{
     "time" : "SOMETHING THAT MATCHES TIME",
     "id" : "SOMETHING THAT MATCHES UUID",
     "body" : "bar"
@@ -2089,7 +2089,7 @@ sides of the communication. You can pass the values:

-
value(consumer(...), producer(...))
+
value(consumer(...), producer(...))
 value(stub(...), test(...))
 value(client(...), server(...))
@@ -2099,7 +2099,7 @@ value(client(...), server(...))
-
$(consumer(...), producer(...))
+
$(consumer(...), producer(...))
 $(stub(...), test(...))
 $(client(...), server(...))
@@ -2134,7 +2134,7 @@ for time and UUID are simplified and most likely invalid but we want to keep thi
-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 				request {
 					method 'GET'
 					url '/someUrl'
@@ -2208,7 +2208,7 @@ looks like this (it got built on the 20.10.2016 at 20:15:21) :

-
1.0.0.20161020-201521-RELEASE
+
1.0.0.20161020-201521-RELEASE
@@ -2216,7 +2216,7 @@ looks like this (it got built on the 20.10.2016 at 20:15:21) :

-
1.0.0.20161020-201521-RELEASE-stubs.jar
+
1.0.0.20161020-201521-RELEASE-stubs.jar
@@ -2225,7 +2225,7 @@ looks like this (it got built on the 20.10.2016 at 20:15:21) :

-
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"})
+
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"})
@@ -2234,7 +2234,7 @@ version. Example for 2.1.1.

-
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:2.1.1:stubs:8080"})
+
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:2.1.1:stubs:8080"})
@@ -2250,7 +2250,7 @@ version. Example for 2.1.1.

-
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"})
+
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"})
@@ -2258,7 +2258,7 @@ version. Example for 2.1.1.

-
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:prod-stubs:8080"})
+
@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:prod-stubs:8080"})
@@ -2283,7 +2283,7 @@ consumer will you break with your local changes.

-
├── com
+
├── com
 │   └── example
 │       └── server
 │           ├── client1
@@ -2312,7 +2312,7 @@ one to one to the contents of the repo.

-
<?xml version="1.0" encoding="UTF-8"?>
+
<?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
@@ -2432,7 +2432,7 @@ Those poms are necessary for the consumer side to run mvn clean install -D
 
-
<?xml version="1.0" encoding="UTF-8"?>
+
<?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
@@ -2480,7 +2480,7 @@ Those poms are necessary for the consumer side to run mvn clean install -D
 
-
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
 		  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 		  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
 	<id>project</id>
@@ -2541,7 +2541,7 @@ of the JAR containing the contracts:

-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<configuration>
@@ -2581,7 +2581,7 @@ of either Gradle or Maven plugins.

-
logging.level.org.apache.http.wire=DEBUG
+
logging.level.org.apache.http.wire=DEBUG
@@ -2619,7 +2619,7 @@ the spock-core and spock-spring modules. Check
Add gradle plugin with dependencies
-
buildscript {
+
buildscript {
 	repositories {
 		mavenCentral()
 	}
@@ -2656,7 +2656,7 @@ opportunity to use Rest Assured 3.x it’s enough to add it to the plugins c
 
-
buildscript {
+
buildscript {
 	repositories {
 		mavenCentral()
 	}
@@ -2688,7 +2688,7 @@ and will modify the imports accordingly.

-
buildscript {
+
buildscript {
 	repositories {
 		mavenCentral()
 		mavenLocal()
@@ -2712,7 +2712,7 @@ So with following structure

-
src/test/resources/contracts/myservice/shouldCreateUser.groovy
+
src/test/resources/contracts/myservice/shouldCreateUser.groovy
 src/test/resources/contracts/myservice/shouldReturnUser.groovy
@@ -2744,7 +2744,7 @@ src/test/resources/contracts/myservice/shouldReturnUser.groovy
-
contracts {
+
contracts {
     targetFramework = 'JUNIT'
     testMode = 'MockMvc'
     generatedTestSourcesDir = project.file("${project.buildDir}/generated-test-sources/contracts")
@@ -2795,7 +2795,7 @@ publishing {
 
-
contracts {
+
contracts {
 	testMode = 'MockMvc'
 	baseClassForTests = 'org.mycompany.tests'
 	generatedTestSourcesDir = project.file('src/generatedContract')
@@ -2871,7 +2871,7 @@ publishing {
 
-
abstract class BaseMockMvcSpec extends Specification {
+
abstract class BaseMockMvcSpec extends Specification {
 
 	def setup() {
 		RestAssuredMockMvc.standaloneSetup(new PairIdController())
@@ -2919,7 +2919,7 @@ if they exist and form a class with a Base suffix. Takes precedence
 
-
packageWithBaseClasses = 'com.example.base'
+
packageWithBaseClasses = 'com.example.base'
@@ -2931,7 +2931,7 @@ Let’s take a look at the following example:

-
baseClassForTests = "com.example.FooBase"
+
baseClassForTests = "com.example.FooBase"
 baseClassMappings {
 	baseClassMapping('.*/com/.*', 'com.example.ComBase')
 	baseClassMapping('.*/bar/.*':'com.example.BarBase')
@@ -2957,7 +2957,7 @@ will be extending the com.example.ComBase whereas the rest of tests
 
-
./gradlew generateContractTests test
+
./gradlew generateContractTests test
@@ -2969,7 +2969,7 @@ will be extending the com.example.ComBase whereas the rest of tests
-
./gradlew generateClientStubs
+
./gradlew generateClientStubs
@@ -2980,7 +2980,7 @@ will be extending the com.example.ComBase whereas the rest of tests
-
@ContextConfiguration(loader == SpringApplicationContextLoader, classes == Application)
+
@ContextConfiguration(loader == SpringApplicationContextLoader, classes == Application)
 class LoanApplicationServiceSpec extends Specification {
 
  @ClassRule
@@ -3017,7 +3017,7 @@ class LoanApplicationServiceSpec extends Specification {
 
-
<dependencyManagement>
+
<dependencyManagement>
 	<dependencies>
 		<dependency>
 			<groupId>org.springframework.cloud</groupId>
@@ -3035,7 +3035,7 @@ class LoanApplicationServiceSpec extends Specification {
 
-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<version>${spring-cloud-contract.version}</version>
@@ -3057,7 +3057,7 @@ opportunity to use Rest Assured 3.x it’s enough to add it to the plugins c
 
-
<plugin>
+
<plugin>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-contract-maven-plugin</artifactId>
     <version>${spring-cloud-contract.version}</version>
@@ -3116,7 +3116,7 @@ and will modify the imports accordingly.

-
<repositories>
+
<repositories>
 	<repository>
 		<id>spring-snapshots</id>
 		<name>Spring Snapshots</name>
@@ -3182,7 +3182,7 @@ So with following structure

-
src/test/resources/contracts/myservice/shouldCreateUser.groovy
+
src/test/resources/contracts/myservice/shouldCreateUser.groovy
 src/test/resources/contracts/myservice/shouldReturnUser.groovy
@@ -3205,7 +3205,7 @@ src/test/resources/contracts/myservice/shouldReturnUser.groovy
-
<plugin>
+
<plugin>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-contract-maven-plugin</artifactId>
     <executions>
@@ -3292,7 +3292,7 @@ In this class you need to point to endpoint which should be verified.

-
package org.mycompany.tests
+
package org.mycompany.tests
 
 import org.mycompany.ExampleSpringController
 import com.jayway.restassured.module.mockmvc.RestAssuredMockMvc
@@ -3335,7 +3335,7 @@ if they exist and form a class with a Base suffix. Takes precedence
 
-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<configuration>
@@ -3354,7 +3354,7 @@ Let’s take a look at the following example:

-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<configuration>
@@ -3391,7 +3391,7 @@ will be extending the com.example.ComBase whereas the rest of tests
 
-
<plugin>
+
<plugin>
 	<groupId>org.codehaus.gmavenplus</groupId>
 	<artifactId>gmavenplus-plugin</artifactId>
 	<version>1.5</version>
@@ -3442,7 +3442,7 @@ will be extending the com.example.ComBase whereas the rest of tests
 
-
 plugin:1.1.0.M1:convert:default-convert:process-test-resources) org.apache.maven.plugin.PluginExecutionException: Execution default-convert of goal org.springframework.cloud:spring-
+
 plugin:1.1.0.M1:convert:default-convert:process-test-resources) org.apache.maven.plugin.PluginExecutionException: Execution default-convert of goal org.springframework.cloud:spring-
  cloud-contract-maven-plugin:1.1.0.M1:convert failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145) at
  org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331) at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362) at
 ...
@@ -3456,7 +3456,7 @@ will be extending the com.example.ComBase whereas the rest of tests
 
-
<build>
+
<build>
     <pluginManagement>
         <plugins>
             <!--This plugin's configuration is used to store Eclipse m2e settings
@@ -3510,7 +3510,7 @@ easy deploy to maven repository.

-
<plugin>
+
<plugin>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-contract-maven-plugin</artifactId>
     <version>${verifier-plugin.version}</version>
@@ -3530,7 +3530,7 @@ easy deploy to maven repository.

-
@RunWith(SpringTestRunner.class)
+
@RunWith(SpringTestRunner.class)
 @SpringBootTest
 @AutoConfigureStubRunner
 public class LoanApplicationServiceTests {
@@ -3565,7 +3565,7 @@ a WireMock server configured using stubs generated by Spring Cloud Contract Veri
 
-
my_contracts_dir\
+
my_contracts_dir\
   scenario1\
     1_login.groovy
     2_showCart.groovy
@@ -3604,7 +3604,7 @@ even though you have a couple of different jars, all of them share one pom:

-
├── github-webhook-0.0.1.BUILD-20160903.075506-1-stubs.jar
+
├── github-webhook-0.0.1.BUILD-20160903.075506-1-stubs.jar
 ├── github-webhook-0.0.1.BUILD-20160903.075506-1-stubs.jar.sha1
 ├── github-webhook-0.0.1.BUILD-20160903.075655-2-stubs.jar
 ├── github-webhook-0.0.1.BUILD-20160903.075655-2-stubs.jar.sha1
@@ -3698,7 +3698,7 @@ Then add @AutoConfigureMessageVerifier to your test, e.g.

-
@RunWith(SpringTestRunner.class)
+
@RunWith(SpringTestRunner.class)
 @SpringBootTest
 @AutoConfigureMessageVerifier
 public static class MessagingContractTests {
@@ -3754,7 +3754,7 @@ inside the application (e.g. scheduler)

-
def contractDsl = Contract.make {
+
def contractDsl = Contract.make {
 	label 'some_label'
 	input {
 		triggeredBy('bookReturnedTriggered()')
@@ -3774,7 +3774,7 @@ inside the application (e.g. scheduler)

-
'''
+
'''
  // when:
   bookReturnedTriggered();
 
@@ -3794,7 +3794,7 @@ inside the application (e.g. scheduler)

-
'''
+
'''
  when:
   bookReturnedTriggered()
 
@@ -3817,7 +3817,7 @@ inside the application (e.g. scheduler)

-
def contractDsl = Contract.make {
+
def contractDsl = Contract.make {
 	label 'some_label'
 	input {
 		messageFrom('jms:input')
@@ -3845,7 +3845,7 @@ inside the application (e.g. scheduler)

-
'''
+
'''
 // given:
  ContractVerifierMessage inputMessage = contractVerifierMessaging.create(
   "{\\"bookName\\":\\"foo\\"}"
@@ -3871,7 +3871,7 @@ inside the application (e.g. scheduler)

-
"""\
+
"""\
 given:
    ContractVerifierMessage inputMessage = contractVerifierMessaging.create(
     '''{"bookName":"foo"}''',
@@ -3899,7 +3899,7 @@ and:
 
-
def contractDsl = Contract.make {
+
def contractDsl = Contract.make {
 	label 'some_label'
 	input {
 		messageFrom('jms:delete')
@@ -3919,7 +3919,7 @@ and:
 
-
'''
+
'''
 // given:
  ContractVerifierMessage inputMessage = contractVerifierMessaging.create(
 	"{\\"bookName\\":\\"foo\\"}"
@@ -3939,7 +3939,7 @@ and:
 
-
'''
+
'''
 given:
 	 ContractVerifierMessage inputMessage = contractVerifierMessaging.create(
 		\'\'\'{"bookName":"foo"}\'\'\',
@@ -3969,7 +3969,7 @@ and proper stubbed routes are created.

Maven
-
<dependencies>
+
<dependencies>
 	<dependency>
 		<groupId>org.springframework.cloud</groupId>
 		<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
@@ -4003,7 +4003,7 @@ and proper stubbed routes are created.

Gradle
-
ext {
+
ext {
 	contractsDir = file("mappings")
 	stubsOutputDirRoot = file("${project.buildDir}/production/${project.name}-stubs/")
 }
@@ -4046,7 +4046,7 @@ automatically for you.

Maven
-
<repositories>
+
<repositories>
 	<repository>
 		<id>spring-snapshots</id>
 		<name>Spring Snapshots</name>
@@ -4103,7 +4103,7 @@ automatically for you.

Gradle
-
buildscript {
+
buildscript {
 	repositories {
 		mavenCentral()
 		mavenLocal()
@@ -4134,7 +4134,7 @@ For both Maven and Gradle the setup comes out of the box. But you can customize
 
Maven
-
<!-- First disable the default jar setup in the properties section-->
+
<!-- First disable the default jar setup in the properties section-->
 <!-- we don't want the verifier to do a jar for us -->
 <spring.cloud.contract.verifier.skip>true</spring.cloud.contract.verifier.skip>
 
@@ -4205,7 +4205,7 @@ For both Maven and Gradle the setup comes out of the box. But you can customize
 
Gradle
-
ext {
+
ext {
 	contractsDir = file("mappings")
 	stubsOutputDirRoot = file("${project.buildDir}/production/${project.name}-stubs/")
 }
@@ -4271,7 +4271,7 @@ contract processing.

-
@AutoConfigureStubRunner(repositoryRoot="http://foo.bar", ids = "com.example:beer-api-producer:+:stubs:8095")
+
@AutoConfigureStubRunner(repositoryRoot="http://foo.bar", ids = "com.example:beer-api-producer:+:stubs:8095")
@@ -4284,7 +4284,7 @@ following example:

-
@AutoConfigureStubRunner(ids = {
+
@AutoConfigureStubRunner(ids = {
     "com.example:beer-api-producer:+:stubs:8095",
     "com.example.foo:bar:1.0.0:superstubs:8096"
 })
@@ -4296,7 +4296,7 @@ following example:

Maven
-
<dependency>
+
<dependency>
     <groupId>com.example</groupId>
     <artifactId>beer-api-producer-restdocs</artifactId>
     <classifier>stubs</classifier>
@@ -4327,7 +4327,7 @@ following example:

Gradle
-
testCompile("com.example:beer-api-producer-restdocs:0.0.1-SNAPSHOT:stubs") {
+
testCompile("com.example:beer-api-producer-restdocs:0.0.1-SNAPSHOT:stubs") {
     transitive = false
 }
 testCompile("com.example.foo:bar:1.0.0:superstubs") {
@@ -4385,7 +4385,7 @@ producer stubs.
 
-
└── src
+
└── src
     └── test
         └── resources
             └── contracts
@@ -4405,7 +4405,7 @@ structure in your stubs jar.

-
└── META-INF
+
└── META-INF
     └── com.example
         └── beer-api-producer-restdocs
             └── 2.0.0
@@ -4450,7 +4450,7 @@ There might be a problem with StubRunner shutting down ports between tests. You
 
-
-c, --classifier                Suffix for the jar containing stubs (e.
+
-c, --classifier                Suffix for the jar containing stubs (e.
                                   g. 'stubs' if the stub jar would
                                   have a 'stubs' classifier for stubs:
                                   foobar-stubs ). Defaults to 'stubs'
@@ -4492,7 +4492,7 @@ There might be a problem with StubRunner shutting down ports between tests. You
 
-
{
+
{
     "request": {
         "method": "GET",
         "url": "/ping"
@@ -4529,7 +4529,7 @@ There might be a problem with StubRunner shutting down ports between tests. You
 
-
@ClassRule public static StubRunnerRule rule = new StubRunnerRule()
+
@ClassRule public static StubRunnerRule rule = new StubRunnerRule()
 		.repoRoot(repoRoot())
 		.downloadStub("org.springframework.cloud.contract.verifier.stubs", "loanIssuance")
 		.downloadStub("org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer");
@@ -4569,7 +4569,7 @@ Check their docs for more informat
-
package org.springframework.cloud.contract.stubrunner;
+
package org.springframework.cloud.contract.stubrunner;
 
 import java.net.URL;
 import java.util.Collection;
@@ -4613,7 +4613,7 @@ public interface StubFinder extends StubTrigger {
 
-
@ClassRule @Shared StubRunnerRule rule = new StubRunnerRule()
+
@ClassRule @Shared StubRunnerRule rule = new StubRunnerRule()
 		.repoRoot(StubRunnerRuleSpec.getResource("/m2repo/repository").toURI().toString())
 		.downloadStub("org.springframework.cloud.contract.verifier.stubs", "loanIssuance")
 		.downloadStub("org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer")
@@ -4639,7 +4639,7 @@ def 'should start WireMock servers'() {
 
-
@Test
+
@Test
 public void should_start_wiremock_servers() throws Exception {
 	// expect: 'WireMocks are running'
 		then(rule.findStubUrl("org.springframework.cloud.contract.verifier.stubs", "loanIssuance")).isNotNull();
@@ -4694,7 +4694,7 @@ JUnit rule.

-
@ClassRule public static StubRunnerRule rule = new StubRunnerRule()
+
@ClassRule public static StubRunnerRule rule = new StubRunnerRule()
 		.repoRoot(repoRoot())
 		.downloadStub("org.springframework.cloud.contract.verifier.stubs", "loanIssuance")
 		.withPort(12345)
@@ -4706,7 +4706,7 @@ JUnit rule.

-
then(rule.findStubUrl("loanIssuance")).isEqualTo(URI.create("http://localhost:12345").toURL());
+
then(rule.findStubUrl("loanIssuance")).isEqualTo(URI.create("http://localhost:12345").toURL());
 then(rule.findStubUrl("fraudDetectionServer")).isEqualTo(URI.create("http://localhost:12346").toURL());
@@ -4726,7 +4726,7 @@ its methods as presented below:

-
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
+
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
 @SpringBootTest(properties = [" stubrunner.cloud.enabled=false",
 		"stubrunner.camel.enabled=false",
 		'foo=${stubrunner.runningstubs.fraudDetectionServer.port}'])
@@ -4803,7 +4803,7 @@ class StubRunnerConfigurationSpec extends Specification {
 
-
stubrunner:
+
stubrunner:
   repositoryRoot: classpath:m2repo/repository/
   ids:
     - org.springframework.cloud.contract.verifier.stubs:loanIssuance
@@ -4825,7 +4825,7 @@ Below you can find an example of achieving the same result by setting values on
 
-
@AutoConfigureStubRunner(
+
@AutoConfigureStubRunner(
 		ids = ["org.springframework.cloud.contract.verifier.stubs:loanIssuance",
 		"org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer",
 		"org.springframework.cloud.contract.verifier.stubs:bootService"],
@@ -4895,7 +4895,7 @@ or DiscoveryClient directly, to call those stubbed servers instead
 
-
def 'should make service discovery work'() {
+
def 'should make service discovery work'() {
 	expect: 'WireMocks are running'
 		"${stubFinder.findStubUrl('loanIssuance').toString()}/name".toURL().text == 'loanIssuance'
 		"${stubFinder.findStubUrl('fraudDetectionServer').toString()}/name".toURL().text == 'fraudDetectionServer'
@@ -4910,7 +4910,7 @@ or DiscoveryClient directly, to call those stubbed servers instead
 
-
spring.cloud:
+
spring.cloud:
   zookeeper.enabled: false
   consul.enabled: false
 eureka.client.enabled: false
@@ -4934,7 +4934,7 @@ via a static block like presented below (example for Eureka)

-
    //Hack to work around https://github.com/spring-cloud/spring-cloud-commons/issues/156
+
    //Hack to work around https://github.com/spring-cloud/spring-cloud-commons/issues/156
     static {
         System.setProperty("eureka.client.enabled", "false");
         System.setProperty("spring.cloud.config.failFast", "false");
@@ -4984,7 +4984,7 @@ trigger the messaging labels and to access started WireMock servers.

-
compile "org.springframework.cloud:spring-cloud-starter-stub-runner"
+
compile "org.springframework.cloud:spring-cloud-starter-stub-runner"
@@ -5033,7 +5033,7 @@ trigger the messaging labels and to access started WireMock servers.

Example

-
@ContextConfiguration(classes = StubRunnerBoot, loader = SpringBootContextLoader)
+
@ContextConfiguration(classes = StubRunnerBoot, loader = SpringBootContextLoader)
 @SpringBootTest(properties = "spring.cloud.zookeeper.enabled=false")
 @ActiveProfiles("test")
 class StubRunnerBootSpec extends Specification {
@@ -5142,7 +5142,7 @@ class StubRunnerBootSpec extends Specification {
 
-
@SpringBootApplication
+
@SpringBootApplication
 @EnableStubRunnerServer
 @EnableEurekaClient
 @AutoConfigureStubRunner
@@ -5166,7 +5166,7 @@ and we want to have the stub runner feature turned on @AutoConfigureStubRu
 
-
-Dstubrunner.repositoryRoot=http://repo.spring.io/snapshots (1)
+
-Dstubrunner.repositoryRoot=http://repo.spring.io/snapshots (1)
 -Dstubrunner.cloud.stubbed.discovery.enabled=false (2)
 -Dstubrunner.ids=org.springframework.cloud.contract.verifier.stubs:loanIssuance,org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer,org.springframework.cloud.contract.verifier.stubs:bootService (3)
 -Dstubrunner.idsToServiceIds.fraudDetectionServer=someNameThatShouldMapFraudDetectionServer (4)
@@ -5213,7 +5213,7 @@ There are 2 consumers: foo-consumer and bar-consumer.<
 
-
request {
+
request {
    url '/foo'
    method GET()
 }
@@ -5230,7 +5230,7 @@ response {
 
-
request {
+
request {
    url '/foo'
    method GET()
 }
@@ -5257,7 +5257,7 @@ if it contains the subfolder with name of the consumer in the path only then wil
 
-
.
+
.
 └── contracts
     ├── bar-consumer
     │   ├── bookReturnedForBar.groovy
@@ -5273,7 +5273,7 @@ Or set the test as follows:

-
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
+
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
 @SpringBootTest(properties = ["spring.application.name=bar-consumer"])
 @AutoConfigureStubRunner(ids = "org.springframework.cloud.contract.verifier.stubs:producerWithMultipleConsumers",
 		repositoryRoot = "classpath:m2repo/repository/",
@@ -5293,7 +5293,7 @@ class StubRunnerStubsPerConsumerSpec extends Specification {
 
-
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
+
@ContextConfiguration(classes = Config, loader = SpringBootContextLoader)
 @SpringBootTest
 @AutoConfigureStubRunner(ids = "org.springframework.cloud.contract.verifier.stubs:producerWithMultipleConsumers",
 		repositoryRoot = "classpath:m2repo/repository/",
@@ -5394,7 +5394,7 @@ information about the reasons behind this change.

-
groupId:artifactId:version:classifier:port
+
groupId:artifactId:version:classifier:port
@@ -5487,7 +5487,7 @@ segments are padded with trailing 0 or "ga" segments, respectively, until the ki
-
package org.springframework.cloud.contract.stubrunner;
+
package org.springframework.cloud.contract.stubrunner;
 
 import java.util.Collection;
 import java.util.Map;
@@ -5540,14 +5540,14 @@ public interface StubTrigger {
 
Trigger by label
-
stubFinder.trigger('return_book_1')
+
stubFinder.trigger('return_book_1')
Trigger by group and artifact ids
-
stubFinder.trigger('org.springframework.cloud.contract.verifier.stubs:camelService', 'return_book_1')
+
stubFinder.trigger('org.springframework.cloud.contract.verifier.stubs:camelService', 'return_book_1')
@@ -5555,7 +5555,7 @@ public interface StubTrigger {
Trigger by artifact ids
-
stubFinder.trigger('camelService', 'return_book_1')
+
stubFinder.trigger('camelService', 'return_book_1')
@@ -5564,7 +5564,7 @@ public interface StubTrigger {
Trigger all messages
-
stubFinder.trigger()
+
stubFinder.trigger()
@@ -5594,7 +5594,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
└── .m2
+
└── .m2
     └── repository
         └── io
             └── codearte
@@ -5613,7 +5613,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
├── META-INF
+
├── META-INF
 │   └── MANIFEST.MF
 └── repository
     ├── accurest
@@ -5628,7 +5628,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_1'
 	input {
 		triggeredBy('bookReturnedTriggered()')
@@ -5648,7 +5648,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_2'
 	input {
 		messageFrom('jms:input')
@@ -5679,7 +5679,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
stubFinder.trigger('return_book_1')
+
stubFinder.trigger('return_book_1')
@@ -5687,7 +5687,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
Exchange receivedMessage = camelContext.createConsumerTemplate().receive('jms:output', 5000)
+
Exchange receivedMessage = camelContext.createConsumerTemplate().receive('jms:output', 5000)
@@ -5695,7 +5695,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
receivedMessage != null
+
receivedMessage != null
 assertThatBodyContainsBookNameFoo(receivedMessage.in.body)
 receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
@@ -5708,7 +5708,7 @@ receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
-
camelContext.createProducerTemplate().sendBodyAndHeaders('jms:input', new BookReturned('foo'), [sample: 'header'])
+
camelContext.createProducerTemplate().sendBodyAndHeaders('jms:input', new BookReturned('foo'), [sample: 'header'])
@@ -5716,7 +5716,7 @@ receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
-
Exchange receivedMessage = camelContext.createConsumerTemplate().receive('jms:output', 5000)
+
Exchange receivedMessage = camelContext.createConsumerTemplate().receive('jms:output', 5000)
@@ -5724,7 +5724,7 @@ receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
-
receivedMessage != null
+
receivedMessage != null
 assertThatBodyContainsBookNameFoo(receivedMessage.in.body)
 receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
@@ -5737,7 +5737,7 @@ receivedMessage.in.headers.get('BOOK-NAME') == 'foo'
-
camelContext.createProducerTemplate().sendBodyAndHeaders('jms:delete', new BookReturned('foo'), [sample: 'header'])
+
camelContext.createProducerTemplate().sendBodyAndHeaders('jms:delete', new BookReturned('foo'), [sample: 'header'])
@@ -5767,7 +5767,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
└── .m2
+
└── .m2
     └── repository
         └── io
             └── codearte
@@ -5786,7 +5786,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
├── META-INF
+
├── META-INF
 │   └── MANIFEST.MF
 └── repository
     ├── accurest
@@ -5801,7 +5801,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_1'
 	input {
 		triggeredBy('bookReturnedTriggered()')
@@ -5821,7 +5821,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_2'
 	input {
 		messageFrom('input')
@@ -5849,7 +5849,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
<?xml version="1.0" encoding="UTF-8"?>
+
<?xml version="1.0" encoding="UTF-8"?>
 <beans:beans xmlns="http://www.springframework.org/schema/integration"
 			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 			 xmlns:beans="http://www.springframework.org/schema/beans"
@@ -5878,7 +5878,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
stubFinder.trigger('return_book_1')
+
stubFinder.trigger('return_book_1')
@@ -5886,7 +5886,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
Message<?> receivedMessage = messaging.receive('outputTest')
+
Message<?> receivedMessage = messaging.receive('outputTest')
@@ -5894,7 +5894,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
receivedMessage != null
+
receivedMessage != null
 assertJsons(receivedMessage.payload)
 receivedMessage.headers.get('BOOK-NAME') == 'foo'
@@ -5907,7 +5907,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
messaging.send(new BookReturned('foo'), [sample: 'header'], 'input')
+
messaging.send(new BookReturned('foo'), [sample: 'header'], 'input')
@@ -5915,7 +5915,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
Message<?> receivedMessage = messaging.receive('outputTest')
+
Message<?> receivedMessage = messaging.receive('outputTest')
@@ -5923,7 +5923,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
receivedMessage != null
+
receivedMessage != null
 assertJsons(receivedMessage.payload)
 receivedMessage.headers.get('BOOK-NAME') == 'foo'
@@ -5936,7 +5936,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
messaging.send(new BookReturned('foo'), [sample: 'header'], 'delete')
+
messaging.send(new BookReturned('foo'), [sample: 'header'], 'delete')
@@ -5980,7 +5980,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
└── .m2
+
└── .m2
     └── repository
         └── io
             └── codearte
@@ -5999,7 +5999,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
├── META-INF
+
├── META-INF
 │   └── MANIFEST.MF
 └── repository
     ├── accurest
@@ -6014,7 +6014,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_1'
 	input { triggeredBy('bookReturnedTriggered()') }
 	outputMessage {
@@ -6030,7 +6030,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
Contract.make {
+
Contract.make {
 	label 'return_book_2'
 	input {
 		messageFrom('bookStorage')
@@ -6054,7 +6054,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
stubrunner.repositoryRoot: classpath:m2repo/repository/
+
stubrunner.repositoryRoot: classpath:m2repo/repository/
 stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:streamService:0.0.1-SNAPSHOT:stubs
 
 spring:
@@ -6080,7 +6080,7 @@ debug: true
-
stubFinder.trigger('return_book_1')
+
stubFinder.trigger('return_book_1')
@@ -6088,7 +6088,7 @@ debug: true
-
Message<?> receivedMessage = messaging.receive('returnBook')
+
Message<?> receivedMessage = messaging.receive('returnBook')
@@ -6096,7 +6096,7 @@ debug: true
-
receivedMessage != null
+
receivedMessage != null
 assertJsons(receivedMessage.payload)
 receivedMessage.headers.get('BOOK-NAME') == 'foo'
@@ -6109,7 +6109,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
messaging.send(new BookReturned('foo'), [sample: 'header'], 'bookStorage')
+
messaging.send(new BookReturned('foo'), [sample: 'header'], 'bookStorage')
@@ -6117,7 +6117,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
Message<?> receivedMessage = messaging.receive('returnBook')
+
Message<?> receivedMessage = messaging.receive('returnBook')
@@ -6125,7 +6125,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
receivedMessage != null
+
receivedMessage != null
 assertJsons(receivedMessage.payload)
 receivedMessage.headers.get('BOOK-NAME') == 'foo'
@@ -6138,7 +6138,7 @@ receivedMessage.headers.get('BOOK-NAME') == 'foo'
-
messaging.send(new BookReturned('foo'), [sample: 'header'], 'delete')
+
messaging.send(new BookReturned('foo'), [sample: 'header'], 'delete')
@@ -6183,7 +6183,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
└── .m2
+
└── .m2
     └── repository
         └── com
             └── example
@@ -6200,7 +6200,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
├── META-INF
+
├── META-INF
 │   └── MANIFEST.MF
 └── contracts
     └── shouldProduceValidPersonData.groovy
@@ -6211,7 +6211,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
-
Contract.make {
+
Contract.make {
     // Human readable description
     description 'Should produce valid person data'
     // Label by means of which the output message can be triggered
@@ -6243,7 +6243,7 @@ Remember to annotate your test class with @AutoConfigureStubRunner.
 
-
stubrunner:
+
stubrunner:
   repositoryRoot: classpath:m2repo/repository/
   ids: org.springframework.cloud.contract.verifier.stubs.amqp:spring-cloud-contract-amqp-test:0.4.0-SNAPSHOT:stubs
   amqp:
@@ -6260,7 +6260,7 @@ server:
 
-
stubTrigger.trigger("contract-test.person.created.event")
+
stubTrigger.trigger("contract-test.person.created.event")
@@ -6268,7 +6268,7 @@ server:
-
@Bean
+
@Bean
 public Binding binding() {
 	return BindingBuilder.bind(new Queue("test.queue")).to(new DirectExchange("contract-test.exchange")).with("#");
 }
@@ -6280,7 +6280,7 @@ So the following listener definition is a match and is invoked with the contract
-
@Bean
+
@Bean
 public SimpleMessageListenerContainer simpleMessageListenerContainer(ConnectionFactory connectionFactory,
 																		MessageListenerAdapter listenerAdapter) {
 	SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
@@ -6297,7 +6297,7 @@ public SimpleMessageListenerContainer simpleMessageListenerContainer(ConnectionF
 
-
@RabbitListener(bindings = @QueueBinding(
+
@RabbitListener(bindings = @QueueBinding(
 		value = @Queue(value = "test.queue"),
 		exchange = @Exchange(value = "contract-test.exchange", ignoreDeclarationExceptions = "true")))
 public void handlePerson(Person person) {
@@ -6328,7 +6328,7 @@ The message is directly handed over to the onMessage method of the
 
-
stubrunner:
+
stubrunner:
   amqp:
     mockConnection: false
@@ -6378,7 +6378,7 @@ Spring Cloud Contract supports defining multiple contracts in a single file!
-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method 'PUT'
 		url '/api/12'
@@ -6484,7 +6484,7 @@ Groovy Map notation.
 
-
		org.springframework.cloud.contract.spec.Contract.make {
+
		org.springframework.cloud.contract.spec.Contract.make {
 			description('''
 given:
 	An input
@@ -6527,7 +6527,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	ignored()
 }
@@ -6541,7 +6541,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	// Definition of HTTP request part of the contract
 	// (this can be a valid request or invalid depending
 	// on type of contract being specified).
@@ -6571,7 +6571,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		// HTTP request method (GET/POST/PUT/DELETE).
 		method 'GET'
@@ -6591,7 +6591,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method 'GET'
 
@@ -6610,7 +6610,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		//...
 
@@ -6658,7 +6658,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		//...
 
@@ -6683,7 +6683,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		//...
 
@@ -6706,7 +6706,7 @@ or just set the ignored property on the contract itself:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		//...
 	}
@@ -6737,7 +6737,7 @@ body and one to set them in a separate section called testMatchers
 
-
value(consumer(...), producer(...))
+
value(consumer(...), producer(...))
 value(c(...), p(...))
 value(stub(...), test(...))
 value(client(...), server(...))
@@ -6748,7 +6748,7 @@ value(client(...), server(...))
-
$(consumer(...), producer(...))
+
$(consumer(...), producer(...))
 $(c(...), p(...))
 $(stub(...), test(...))
 $(client(...), server(...))
@@ -6770,7 +6770,7 @@ for your test and your server side tests.

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method('GET')
 		url $(consumer(~/\/[0-9]{2}/), producer('/12'))
@@ -6802,7 +6802,7 @@ provide the generated string that matches the provided regular expression. For e
 
-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method 'PUT'
 		url value(consumer(regex('/foo/[0-9]{5}')))
@@ -6833,7 +6833,7 @@ provide the generated string that matches the provided regular expression. For e
 
-
protected static final Pattern TRUE_OR_FALSE = Pattern.compile(/(true|false)/)
+
protected static final Pattern TRUE_OR_FALSE = Pattern.compile(/(true|false)/)
 protected static final Pattern ONLY_ALPHA_UNICODE = Pattern.compile(/[\p{L}]*/)
 protected static final Pattern NUMBER = Pattern.compile('-?\\d*(\\.\\d+)?')
 protected static final Pattern IP_ADDRESS = Pattern.compile('([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])')
@@ -6914,7 +6914,7 @@ String nonBlank() {
 
-
Contract dslWithOptionalsInString = Contract.make {
+
Contract dslWithOptionalsInString = Contract.make {
 	priority 1
 	request {
 		method POST()
@@ -6961,7 +6961,7 @@ String nonBlank() {
 
-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	priority 1
 	request {
 		method 'POST'
@@ -6994,7 +6994,7 @@ String nonBlank() {
 
-
"""
+
"""
  given:
   def request = given()
     .header("Content-Type", "application/json")
@@ -7018,7 +7018,7 @@ String nonBlank() {
 
-
'''
+
'''
 {
   "request" : {
     "url" : "/users/password",
@@ -7058,7 +7058,7 @@ in the configuration. Example:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method 'PUT'
 		url $(consumer(regex('^/api/[0-9]{2}$')), producer('/api/12'))
@@ -7086,7 +7086,7 @@ in the configuration. Example:

-
abstract class BaseMockMvcSpec extends Specification {
+
abstract class BaseMockMvcSpec extends Specification {
 
 	def setup() {
 		RestAssuredMockMvc.standaloneSetup(new PairIdController())
@@ -7157,7 +7157,7 @@ of elements from the HTTP request. You can use the following options:

-
Contract contractDsl = Contract.make {
+
Contract contractDsl = Contract.make {
 	request {
 		method 'GET'
 		url('/api/v1/xxxx') {
@@ -7197,7 +7197,7 @@ of elements from the HTTP request. You can use the following options:

-
// given:
+
// given:
  MockMvcRequestSpecification request = given()
    .header("Authorization", "secret")
    .header("Authorization", "secret2")
@@ -7233,7 +7233,7 @@ of elements from the HTTP request. You can use the following options:

-
{
+
{
   "request" : {
     "urlPath" : "/api/v1/xxxx",
     "method" : "POST",
@@ -7270,7 +7270,7 @@ response body

-
{
+
{
   "url" : "/api/v1/xxxx?foo=bar&foo=bar2",
   "param" : "bar",
   "paramIndex" : "bar2",
@@ -7384,7 +7384,7 @@ will result in calling a foo method to which the value matching the
 
-
Contract contractDsl = Contract.make {
+
Contract contractDsl = Contract.make {
 	request {
 		method 'GET'
 		urlPath '/get'
@@ -7528,7 +7528,7 @@ assertions and the one from matchers with an and section):

-
// given:
+
// given:
  MockMvcRequestSpecification request = given()
    .header("Content-Type", "application/json")
    .body("{\"duck\":123,\"alpha\":\"abc\",\"number\":123,\"aBoolean\":true,\"date\":\"2017-01-01\",\"dateTime\":\"2017-01-01T01:23:45\",\"time\":\"01:02:34\",\"valueWithoutAMatcher\":\"foo\",\"valueWithTypeMatch\":\"string\"}");
@@ -7572,7 +7572,7 @@ assertions and the one from matchers with an and section):

-
				'''
+
				'''
 {
   "request" : {
     "urlPath" : "/get",
@@ -7640,7 +7640,7 @@ assertions and the one from matchers with an and section):

-
testMode === 'JAXRSCLIENT'
+
testMode === 'JAXRSCLIENT'
@@ -7648,7 +7648,7 @@ assertions and the one from matchers with an and section):

-
'''
+
'''
  // when:
   Response response = webTarget
     .path("/users")
@@ -7683,7 +7683,7 @@ section a async() method. Example:

-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
     request {
         method GET()
         url '/get'
@@ -7721,7 +7721,7 @@ on the PRODUCER side. The autogenerated tests need to be using
 
Maven
-
<plugin>
+
<plugin>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-contract-maven-plugin</artifactId>
     <version>${spring-cloud-contract.version}</version>
@@ -7735,7 +7735,7 @@ on the PRODUCER side. The autogenerated tests need to be using
 
Gradle
-
contracts {
+
contracts {
 		testMode = 'EXPLICIT'
 }
@@ -7749,7 +7749,7 @@ real requests and you need to setup your generated test’s base class to wo
-
org.springframework.cloud.contract.spec.Contract.make {
+
org.springframework.cloud.contract.spec.Contract.make {
 	request {
 		method 'GET'
 		url '/my-context-path/url'
@@ -7765,7 +7765,7 @@ real requests and you need to setup your generated test’s base class to wo
 
-
import com.jayway.restassured.RestAssured;
+
import com.jayway.restassured.RestAssured;
 import org.junit.Before;
 import org.springframework.boot.context.embedded.LocalServerPort;
 import org.springframework.boot.test.context.SpringBootTest;
@@ -7810,7 +7810,7 @@ have that information (e.g. in the stubs you’ll see that you have too call
 
-
def dsl = Contract.make {
+
def dsl = Contract.make {
 	// Human readable description
 	description 'Some description'
 	// Label by means of which the output message can be triggered
@@ -7846,7 +7846,7 @@ we will generate a test that will call that method to trigger the message. On th
 
-
def dsl = Contract.make {
+
def dsl = Contract.make {
 	description 'Some Description'
 	label 'some_label'
 	// input is a message
@@ -7888,7 +7888,7 @@ as presented below (note you can use either $ or value
 
-
Contract.make {
+
Contract.make {
 	label 'some_label'
 	input {
 		messageFrom value(consumer('jms:output'), producer('jms:input'))
@@ -7917,7 +7917,7 @@ as presented below (note you can use either $ or value
 
-
import org.springframework.cloud.contract.spec.Contract
+
import org.springframework.cloud.contract.spec.Contract
 
 [
         Contract.make {
@@ -7948,7 +7948,7 @@ two tests that will look more or less like this:

-
package org.springframework.cloud.contract.verifier.tests.com.hello;
+
package org.springframework.cloud.contract.verifier.tests.com.hello;
 
 import com.example.TestBase;
 import com.jayway.jsonpath.DocumentContext;
@@ -8003,7 +8003,7 @@ index of the contract in the list.

-
should post a user.json
+
should post a user.json
 1_WithList.json
@@ -8059,7 +8059,7 @@ of:

-
package com.example;
+
package com.example;
 
 import java.util.regex.Pattern;
 
@@ -8114,7 +8114,7 @@ public class PatternUtils {
 
-
package com.example;
+
package com.example;
 
 import org.springframework.cloud.contract.spec.internal.ClientDslProperty;
 
@@ -8166,7 +8166,7 @@ public class ConsumerUtils {
 
-
package com.example;
+
package com.example;
 
 import org.springframework.cloud.contract.spec.internal.ServerDslProperty;
 
@@ -8226,7 +8226,7 @@ common jar classes will be visible in your Groovy files.

Maven
-
<dependency>
+
<dependency>
 	<groupId>com.example</groupId>
 	<artifactId>beer-common</artifactId>
 	<version>${project.version}</version>
@@ -8237,7 +8237,7 @@ common jar classes will be visible in your Groovy files.

Gradle
-
testCompile("com.example:beer-common:0.0.1-SNAPSHOT")
+
testCompile("com.example:beer-common:0.0.1-SNAPSHOT")
@@ -8249,7 +8249,7 @@ common jar classes will be visible in your Groovy files.

Maven
-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<version>${spring-cloud-contract.version}</version>
@@ -8277,7 +8277,7 @@ common jar classes will be visible in your Groovy files.

Gradle
-
classpath "com.example:beer-common:0.0.1-SNAPSHOT"
+
classpath "com.example:beer-common:0.0.1-SNAPSHOT"
@@ -8288,7 +8288,7 @@ common jar classes will be visible in your Groovy files.

-
package contracts.beer.rest
+
package contracts.beer.rest
 
 import com.example.ConsumerUtils
 import com.example.ProducerUtils
@@ -8353,7 +8353,7 @@ stubs for other stub http server implementations).

-
request:
+
request:
   url: /foo
   method: PUT
   headers:
@@ -8373,7 +8373,7 @@ response:
 
-
package org.springframework.cloud.contract.spec
+
package org.springframework.cloud.contract.spec
 
 /**
  * Converter to be used to convert FROM {@link File} TO {@link Contract}
@@ -8436,7 +8436,7 @@ file in which you provide the fully qualified name of your implementation.
 
-
# Converters
+
# Converters
 org.springframework.cloud.contract.spec.ContractConverter=\
 org.springframework.cloud.contract.verifier.converter.YamlContractConverter
@@ -8446,7 +8446,7 @@ org.springframework.cloud.contract.verifier.converter.YamlContractConverter
-
package org.springframework.cloud.contract.verifier.converter
+
package org.springframework.cloud.contract.verifier.converter
 
 import groovy.transform.CompileStatic
 import org.springframework.cloud.contract.spec.Contract
@@ -8533,7 +8533,7 @@ the src/test/resources/contracts folder.

-
{
+
{
   "provider": {
     "name": "Provider"
   },
@@ -8600,7 +8600,7 @@ Pact version that you’re using.

Maven
-
<plugin>
+
<plugin>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
 	<version>${spring-cloud-contract.version}</version>
@@ -8626,7 +8626,7 @@ Pact version that you’re using.

Gradle
-
classpath "org.springframework.cloud:spring-cloud-contract-spec-pact:${findProperty('verifierVersion') ?: verifierVersion}"
+
classpath "org.springframework.cloud:spring-cloud-contract-spec-pact:${findProperty('verifierVersion') ?: verifierVersion}"
 classpath 'au.com.dius:pact-jvm-model:2.4.18'
@@ -8635,7 +8635,7 @@ classpath 'au.com.dius:pact-jvm-model:2.4.18'
-
@Test
+
@Test
 public void validate_shouldMarkClientAsFraud() throws Exception {
 	// given:
 		MockMvcRequestSpecification request = given()
@@ -8662,7 +8662,7 @@ public void validate_shouldMarkClientAsFraud() throws Exception {
 
-
{
+
{
   "uuid" : "996ae5ae-6834-4db6-8fac-358ca187ab62",
   "request" : {
     "url" : "/fraudcheck",
@@ -8699,7 +8699,7 @@ Pact version that you’re using.

Maven
-
<dependency>
+
<dependency>
 	<groupId>org.springframework.cloud</groupId>
 	<artifactId>spring-cloud-contract-spec-pact</artifactId>
 	<scope>test</scope>
@@ -8715,7 +8715,7 @@ Pact version that you’re using.

Gradle
-
testCompile "org.springframework.cloud:spring-cloud-contract-spec-pact"
+
testCompile "org.springframework.cloud:spring-cloud-contract-spec-pact"
 testCompile 'au.com.dius:pact-jvm-model:2.4.18'
@@ -8734,7 +8734,7 @@ your own implementation to do that.

-
package org.springframework.cloud.contract.verifier.builder
+
package org.springframework.cloud.contract.verifier.builder
 
 import org.springframework.cloud.contract.verifier.config.ContractVerifierConfigProperties
 import org.springframework.cloud.contract.verifier.file.ContractMetadata
@@ -8774,7 +8774,7 @@ a proper spring.factories file. Example:

-
org.springframework.cloud.contract.verifier.builder.SingleTestGenerator=/
+
org.springframework.cloud.contract.verifier.builder.SingleTestGenerator=/
 com.example.MyGenerator
@@ -8787,7 +8787,7 @@ com.example.MyGenerator
-
package org.springframework.cloud.contract.verifier.converter
+
package org.springframework.cloud.contract.verifier.converter
 
 import groovy.transform.CompileStatic
 import org.springframework.cloud.contract.spec.Contract
@@ -8832,7 +8832,7 @@ a proper spring.factories file. Example:

-
# Stub converters
+
# Stub converters
 org.springframework.cloud.contract.verifier.converter.StubGenerator=\
 org.springframework.cloud.contract.verifier.wiremock.DslToWireMockClientConverter
@@ -8870,7 +8870,7 @@ You wrote a proper stub generator and your stubs got placed in a JAR file.

-
package org.springframework.cloud.contract.stubrunner.provider.moco
+
package org.springframework.cloud.contract.stubrunner.provider.moco
 
 import com.github.dreamhead.moco.bootstrap.arg.HttpArgs
 import com.github.dreamhead.moco.runner.JsonRunner
@@ -8938,7 +8938,7 @@ class MocoHttpServerStub implements HttpServerStub {
 
-
org.springframework.cloud.contract.stubrunner.HttpServerStub=\
+
org.springframework.cloud.contract.stubrunner.HttpServerStub=\
 org.springframework.cloud.contract.stubrunner.provider.moco.MocoHttpServerStub
@@ -8967,7 +8967,7 @@ implementation of the StubDownloaderBuilder

-
package com.example;
+
package com.example;
 
 class CustomStubDownloaderBuilder implements StubDownloaderBuilder {
 
@@ -8994,7 +8994,7 @@ class CustomStubDownloaderBuilder implements StubDownloaderBuilder {
 
-
# Example of a custom Stub Downloader Provider
+
# Example of a custom Stub Downloader Provider
 org.springframework.cloud.contract.stubrunner.StubDownloaderBuilder=\
 com.example.CustomStubDownloaderBuilder
@@ -9095,7 +9095,7 @@ part of your test. Here’s a simple example:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
 @AutoConfigureWireMock(port = 0)
 public class WiremockForDocsTests {
@@ -9202,7 +9202,7 @@ class to obtain an Options instance:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
 public class WiremockForDocsClassRuleTests {
 
@@ -9250,7 +9250,7 @@ e.g.

-
@Bean
+
@Bean
 public RestTemplate restTemplate(RestTemplateBuilder builder) {
 	return builder.build();
 }
@@ -9264,7 +9264,7 @@ to add the @AutoConfigureHttpClient annotation as well:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest("app.baseUrl=https://localhost:6443")
 @AutoConfigureHttpClient
 public class WiremockHttpsServerApplicationTests {
@@ -9293,7 +9293,7 @@ Spring MockRestServiceServer. Here’s an example:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest(webEnvironment = WebEnvironment.NONE)
 public class WiremockForDocsMockServerApplicationTests {
 
@@ -9351,7 +9351,7 @@ automatically in the restdocs output directory. For example:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest
 @AutoConfigureRestDocs(outputDir = "target/snippets")
 @AutoConfigureMockMvc
@@ -9390,7 +9390,7 @@ example:

-
@RunWith(SpringRunner.class)
+
@RunWith(SpringRunner.class)
 @SpringBootTest
 @AutoConfigureRestDocs(outputDir = "target/snippets")
 @AutoConfigureMockMvc
@@ -9424,7 +9424,7 @@ created stub. Example:

-
@Test
+
@Test
 public void contextLoads() throws Exception {
 	mockMvc.perform(post("/resource")
                .content("{\"id\":\"123456\",\"message\":\"Hello World\"}"))
@@ -9446,7 +9446,7 @@ will generate a stub something like this:

post-resource.json
-
{
+
{
   "request" : {
     "url" : "/resource",
     "method" : "POST",
@@ -9521,7 +9521,7 @@ only contracts and not generate the stubs. That’s why we suggest to do bot
 
-
		this.mockMvc.perform(post("/foo")
+
		this.mockMvc.perform(post("/foo")
 					.accept(MediaType.APPLICATION_PDF)
 					.accept(MediaType.APPLICATION_JSON)
 					.contentType(MediaType.APPLICATION_JSON)
@@ -9546,7 +9546,7 @@ section, contract will get generated and a documentation file too.

-
import org.springframework.cloud.contract.spec.Contract
+
import org.springframework.cloud.contract.spec.Contract
 
 Contract.make {
     request {
@@ -9583,5 +9583,8 @@ Contract.make {
 
+ + + \ No newline at end of file