Files
getting-started/spring-cloud/spring-cloud-contract-provider

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 generateContractTests to generate JUnit tests that validate the controller against the contract
  • run ./gradlew build to generate and run the tests