/pact-ec-app

A consumer of pact contract testing

Primary LanguageJava

The Consumer Sample Project Using Pact JVM Consumer

The repo "pact-ec-app" demonstrates an e-commerce application which depends on the "pact-ec-review-service" restful service. The former (as a consumer) sends requests to the latter (as a provider) to get rating information (5-star rating) for a product on the e-commerce website with product id and user name.

How to Run It

  1. Install jdk 1.8+ and maven 3
  2. Git clone the "pact-ec-app" repo.
  3. Run command "./mvnw clean test"
  4. The pact file target/pacts/ec_app-review_service.json will be generated.

Please refer to the "pact-ec-review-service" for how to implement the corresponding pact provider.