Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins within Junit4 consumers #34

Open
rkrishnan2012 opened this issue Jun 5, 2023 · 1 comment
Open

Plugins within Junit4 consumers #34

rkrishnan2012 opened this issue Jun 5, 2023 · 1 comment
Labels
question Indicates that an issue, pull request, or discussion needs more information

Comments

@rkrishnan2012
Copy link

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 rholshausen added the question Indicates that an issue, pull request, or discussion needs more information label Jul 16, 2024
@rholshausen
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Indicates that an issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

2 participants