Testing a Spring Boot REST API against a Contract with Spring Cloud Contract
Companion Blog Article
Read the companion blog article to this repository.
Getting Started
- have a look at the contract
- have a look at the controller
- run
./gradlew generateContractTeststo generate JUnit tests that validate the controller against the contract - run
./gradlew buildto generate and run the tests