From 03b802e94db5a550595d07a40701acda6375f24c Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 6 Feb 2017 06:43:17 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 5470c9c517..7d42e02481 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1973,7 +1973,11 @@ git pull https://your-git-server.com/server-side-fork.git contract-change-pr
-
Unresolved directive in verifier/introduction.adoc - include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-contract/1.0.x/samples/standalone/dsl/http-server/pom.xml[tags=verifier_test_dependencies,indent=0]
+
	<dependency>
+	<groupId>org.springframework.cloud</groupId>
+	<artifactId>spring-cloud-starter-contract-verifier</artifactId>
+	<scope>test</scope>
+</dependency>
@@ -2074,9 +2078,7 @@ public void validate_shouldMarkClientAsFraud() throws Exception { consumes = FRAUD_SERVICE_JSON_VERSION_1, produces = FRAUD_SERVICE_JSON_VERSION_1) public FraudCheckResult fraudCheck(@RequestBody FraudCheck fraudCheck) { -if (amountGreaterThanThreshold(fraudCheck)) { - return new FraudCheckResult(FraudCheckStatus.FRAUD, AMOUNT_TOO_HIGH); -} +Unresolved directive in verifier/introduction.adoc - include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-contract/1.0.x/samples/standalone/dsl/http-server/src/main/java/com/example/fraud/FraudDetectionController.java[tags=new_impl,indent=0] return new FraudCheckResult(FraudCheckStatus.OK, NO_REASON); }
@@ -4232,7 +4234,24 @@ For both Maven and Gradle the setup comes out of the box. But you can customize <spring.cloud.contract.verifier.skip>true</spring.cloud.contract.verifier.skip> <!-- Next add the assembly plugin to your build --> -Unresolved directive in verifier/stubrunner.adoc - include::https://raw.githubusercontent.com/spring-cloud-samples/spring-cloud-contract-samples/master/producer_with_restdocs/pom.xml[tags=assembly,indent=0] +<plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>stub</id> + <phase>prepare-package</phase> + <goals> + <goal>single</goal> + </goals> + <inherited>false</inherited> + <configuration> + <attach>true</attach> + <descriptor>${basedir}/src/assembly/stub.xml</descriptor> + </configuration> + </execution> + </executions> +</plugin> <!-- Finally setup your assembly. Below you can find the contents of src/main/assembly/stub.xml --> <assembly