Updated the introductory project

This commit is contained in:
Marcin Grzejszczak
2016-08-24 18:01:06 +02:00
parent 43082d8ca6
commit ab535dc8ea
2 changed files with 6 additions and 18 deletions

View File

@@ -667,16 +667,7 @@ Add the dependency to `Spring Cloud Contract Stub Runner`
</dependency>
----
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]
----

View File

@@ -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]
----