pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 480 forks source link

Pact V4 #1504

Open YDanot opened 2 years ago

YDanot commented 2 years ago

Hello, First of all thanks for your work it's great !

Can you please provide code example or update pact documentation on how to use pactV4 and PactBuilder correctly in a junit test with version 4.3.X ?

uglyog commented 2 years ago

There are examples in the plugins repo. For example https://github.com/pact-foundation/pact-plugins/blob/main/examples/csv/csv-consumer-jvm/src/test/java/io/grpc/examples/csv/CsvClientTest.java and https://github.com/pact-foundation/pact-plugins/blob/main/examples/protobuf/protobuf-consumer-jvm/src/test/java/io/pact/example/protobuf/provider/PactConsumerTest.java

A proper example and documentation still needs to be added to this repository