pact-foundation / pact-plugins

🏰 Architecture to support Plugins 🔌 with Pact 🔗
MIT License
19 stars 11 forks source link

Plugins within Junit4 consumers #34

Open rkrishnan2012 opened 1 year ago

rkrishnan2012 commented 1 year ago

Hey folks, Is it possible to use the protobuf plugin with a Junit4 consumer? I see an example with the calculator app using Junit5, but I don't see any examples of using a plugin in Pact with Junit4 to generate a contract.

Specifically, I am trying to generate a consumer contract within an Android project (which is limited to Junit4) and the docs for pact-jvm-consumer-junit doesn't indicate we can use plugins, and the source for ConsumerPactBuilder makes no reference to plugins.

rholshausen commented 2 months ago

JUnit 4 and 5 share the same DSL, so plugins should work with Junit 4 tests.