From ab535dc8ea42f18fb428934d7212b131cd4de9a7 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 24 Aug 2016 18:01:06 +0200 Subject: [PATCH] Updated the introductory project --- README.adoc | 13 +++---------- docs/src/main/asciidoc/verifier/introduction.adoc | 11 +++-------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/README.adoc b/README.adoc index c90355fe33..392d3898bd 100644 --- a/README.adoc +++ b/README.adoc @@ -667,16 +667,7 @@ Add the dependency to `Spring Cloud Contract Stub Runner` ---- -Provide the group id and artifact id for the Stub Runner to download stubs of your collaborators. Also provide the offline work switch since you're playing with the collaborators offline (optional step). - -[source,yaml,indent=0] ----- -stubrunner: - work-offline: true - ids: 'com.example:http-server-dsl:+:stubs:8080' ----- - -Annotate your test class with `@AutoConfigureStubRunner` +Annotate your test class with `@AutoConfigureStubRunner`. In the annotation provide the group id and artifact id for the Stub Runner to download stubs of your collaborators. Also provide the offline work switch since you're playing with the collaborators offline (optional step). [source,groovy,indent=0] ---- @@ -873,6 +864,8 @@ git merge --no-ff contract-change-pr *work online* Now you can disable the offline work for Spring Cloud Contract Stub Runner ad provide where the repository with your stubs is placed. At this moment the stubs of the server side will be automatically downloaded from Nexus / Artifactory. +You can switch off the value of the `workOffline` parameter in your annotation. Below you can see an +example of achieving the same by changing the properties. [source,yaml,indent=0] ---- diff --git a/docs/src/main/asciidoc/verifier/introduction.adoc b/docs/src/main/asciidoc/verifier/introduction.adoc index 81243baaeb..5451a8b16f 100644 --- a/docs/src/main/asciidoc/verifier/introduction.adoc +++ b/docs/src/main/asciidoc/verifier/introduction.adoc @@ -256,14 +256,7 @@ Add the dependency to `Spring Cloud Contract Stub Runner` include::{introduction_url}/samples/standalone/dsl/http-client/pom.xml[tags=stub_runner,indent=0] ---- -Provide the group id and artifact id for the Stub Runner to download stubs of your collaborators. Also provide the offline work switch since you're playing with the collaborators offline (optional step). - -[source,yaml,indent=0] ----- -include::{introduction_url}/samples/standalone/dsl/http-client/src/test/resources/application.yaml[] ----- - -Annotate your test class with `@AutoConfigureStubRunner` +Annotate your test class with `@AutoConfigureStubRunner`. In the annotation provide the group id and artifact id for the Stub Runner to download stubs of your collaborators. Also provide the offline work switch since you're playing with the collaborators offline (optional step). [source,groovy,indent=0] ---- @@ -416,6 +409,8 @@ git merge --no-ff contract-change-pr *work online* Now you can disable the offline work for Spring Cloud Contract Stub Runner ad provide where the repository with your stubs is placed. At this moment the stubs of the server side will be automatically downloaded from Nexus / Artifactory. +You can switch off the value of the `workOffline` parameter in your annotation. Below you can see an +example of achieving the same by changing the properties. [source,yaml,indent=0] ----