File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- # Testing a Spring Boot REST API Consumer against a Contract with Spring Cloud Contract
1+ # Testing a Spring Boot REST API Consumer against a Contract with Pact
22
33## Companion Blog Article
4- Read the [ companion blog article] ( https ://reflectoring.io /consumer-driven-contract-consumer-spring-cloud-contract /) to this repository.
4+ Read the [ companion blog article] ( http ://localhost:4000 /consumer-driven-contract-feign-pact /) to this repository.
55
66## Getting Started
77
8- * have a look at the [ contract] ( src/test/resources/contracts )
98* have a look at the [ feign client] ( src/main/java/io/reflectoring/UserClient.java )
10- * have a look at the [ consumer test] ( src/test/java/io/reflectoring/UserClientTest.java )
11- * run ` ./gradlew publishToMavenLocal ` in the [ producer project] ( ../spring-cloud-contract-provider )
12- to create a provider stubs
13- * run ` ./gradlew build ` in this project to verify the feign client against the stub
9+ * have a look at the [ consumer test] ( src/test/java/io/reflectoring/UserServiceConsumerTest.java )
10+ * run ` ./gradlew build ` in this project to create a pact and run the consumer test
11+ * afterwards, find the pact contract file in the folder ` target/pacts `
You can’t perform that action at this time.
0 commit comments