From 93265d808995c522a609ccc08bb4eb58b1d2a2c1 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 13 Jan 2017 17:24:09 +0000 Subject: [PATCH] Sync docs from 1.0.x to gh-pages --- 1.0.x/spring-cloud-contract.html | 38 +++++++++++--------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/1.0.x/spring-cloud-contract.html b/1.0.x/spring-cloud-contract.html index 8ee28a2fec..88ac16661b 100644 --- a/1.0.x/spring-cloud-contract.html +++ b/1.0.x/spring-cloud-contract.html @@ -826,7 +826,7 @@ and consumers, for HTTP and message-based interactions.

Modules giving you the possibility to use WireMock with different servers by using the "ambient" server embedded in a Spring Boot application. Check out the -samples +samples for more details.

@@ -1265,7 +1265,7 @@ Full test is generated by Spring Cloud Contract Verifier.

-Microservices Architecture +Microservices Architecture
@@ -1359,7 +1359,7 @@ to set up the whole world of microservices.

-Stubbed Services +Stubbed Services
@@ -1367,7 +1367,7 @@ to set up the whole world of microservices.

-Stubbed Services +Stubbed Services
@@ -1458,7 +1458,7 @@ for response verification.

going through the process. CDC is all about communication.

-

The server side code is available here and the client side code here.

+

The server side code is available here and the client side code here.

@@ -1978,28 +1978,16 @@ git pull https://your-git-server.com/server-side-fork.git contract-change-pr
package com.example.fraud;
 
-import org.junit.Before;
-
+import com.example.fraud.FraudDetectionController;
 import com.jayway.restassured.module.mockmvc.RestAssuredMockMvc;
 
+import org.junit.Before;
+
 public class FraudBase {
 
 	@Before
 	public void setup() {
-		RestAssuredMockMvc.standaloneSetup(new FraudDetectionController(),
-				new FraudStatsController(stubbedStatsProvider()));
-	}
-
-	private StatsProvider stubbedStatsProvider() {
-		return fraudType -> {
-			switch (fraudType) {
-			case DRUNKS:
-				return 100;
-			case ALL:
-				return 200;
-			}
-			return 0;
-		};
+		RestAssuredMockMvc.standaloneSetup(new FraudDetectionController());
 	}
 
 	public void assertThatRejectionReasonIsNull(Object rejectionReason) {
@@ -2500,7 +2488,7 @@ consumer will you break with your local changes.

Let’s assume that we have a producer with coordinates com.example:server and 3 consumers: client1, client2, client3. Then in the repository with common contracts you would have the following setup -(which you can checkout here:

+(which you can checkout here:

@@ -2548,15 +2536,15 @@ one to one to the contents of the repo.

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>1.5.0.BUILD-SNAPSHOT</version> + <version>1.4.2.BUILD-SNAPSHOT</version> <relativePath /> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version> - <spring-cloud-contract.version>1.1.0.BUILD-SNAPSHOT</spring-cloud-contract.version> - <spring-cloud-dependencies.version>Dalston.BUILD-SNAPSHOT</spring-cloud-dependencies.version> + <spring-cloud-contract.version>1.0.4.BUILD-SNAPSHOT</spring-cloud-contract.version> + <spring-cloud-dependencies.version>Camden.BUILD-SNAPSHOT</spring-cloud-dependencies.version> </properties> <dependencyManagement>