File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
spring-cloud/spring-cloud-contract-provider Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1+ # Testing a Spring Boot REST API against a Contract with Spring Cloud Contract
2+
3+ ## Companion Blog Article
4+ Read the [ companion blog article] ( https://reflectoring.io/consumer-driven-contract-provider-spring-cloud-contract/ ) to this repository.
5+
6+ ## Getting Started
7+
8+ * have a look at the [ contract] ( /src/test/resources/contracts )
9+ * have a look at the [ controller] ( /src/main/java/io/reflectoring/UserController.java )
10+ * run ` ./gradlew generateContractTests ` to generate JUnit tests that validate the controller against the contract
11+ * run ` ./gradlew build ` to generate and run the tests
Original file line number Diff line number Diff line change 1+ apply plugin : ' spring-cloud-contract'
2+
13buildscript {
24 repositories {
35 mavenCentral()
@@ -13,8 +15,6 @@ buildscript {
1315 }
1416}
1517
16- apply plugin : ' groovy'
17- apply plugin : ' spring-cloud-contract'
1818
1919repositories {
2020 mavenCentral()
You can’t perform that action at this time.
0 commit comments