diff --git a/pact/pact-feign-consumer/README.md b/pact/pact-feign-consumer/README.md index 518eb27..cd4333a 100644 --- a/pact/pact-feign-consumer/README.md +++ b/pact/pact-feign-consumer/README.md @@ -1,13 +1,11 @@ -# Testing a Spring Boot REST API Consumer against a Contract with Spring Cloud Contract +# Creating a Consumer-Driven Contract with Feign and Pact ## Companion Blog Article -Read the [companion blog article](https://reflectoring.io/consumer-driven-contract-consumer-spring-cloud-contract/) to this repository. +Read the [companion blog article](https://reflectoring.io/consumer-driven-contract-feign-pact/) to this repository. ## Getting Started -* have a look at the [contract](/src/test/resources/contracts) * have a look at the [feign client](/src/main/java/io/reflectoring/UserClient.java) -* have a look at the [consumer test](/src/test/java/io/reflectoring/UserClientTest.java) -* run `./gradlew publishToMavenLocal` in the [producer project](../spring-cloud-contract-provider) - to create a provider stubs -* run `./gradlew build` in this project to verify the feign client against the stub \ No newline at end of file +* have a look at the [consumer test](/src/test/java/io/reflectoring/UserServiceConsumerTest.java) +* run `./gradlew build` to run all tests and create pact files into the folder `target/pacts` +* run `./gradlew pactPublish` to publish the pact files to a Pact Broker (must specify Pact Broker location and credentials in `build.gradle`) \ No newline at end of file