Files
spring-cloud-contract/samples/standalone/restdocs/http-client
Dave Syer c1e285e76f Fix property source ordering issue with bootstrap context
The problem is that the bootstrap context gets created first
with the correct wiremock server port, and then the environment
is merged into the main context before the annotation
property source is created, so the latter takes precedence.
Fixed by re-ordering the property sources if detected.

Also switch off bootstrap context for wiremock server

Fixes gh-225
2017-03-24 09:41:36 +00:00
..
2016-08-22 11:33:17 +02:00
2016-11-14 10:30:04 +01:00
2016-11-24 18:58:50 +01:00
2017-01-12 15:58:06 +01:00
2016-07-26 14:28:43 +01:00
2016-08-22 11:33:17 +02:00

= Http Client

== Prerequisites

First you have to publish to Maven Local the stubs of the *http-server* module

== How to run it?

Run

[source=groovy]
--------
./gradlew clean build
--------

or

--------
./mvnw clean package
--------

To

- build the app
- use spring-cloud-contract-stub-runner-spring[Stub Runner Spring] to download the stub of `Http Server`
- run the tests against stubbed server