-
Notifications
You must be signed in to change notification settings - Fork 103
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
The documentation for pact-jvm-consumer-junit5 contains an error. #298
Comments
which page/doc in particular - can you provide a link to the example |
|
Thanks @Groos-dev That document source is here https://github.com/pact-foundation/pact-jvm/blob/master/consumer/junit5/README.md and is pulled in via a sync job, so one would to update the documentation via the link above. I imagine this document actually needs updating to reflect a supported branch, currently the readme suggests
which is no longer a supported branch |
No problem 👍🏾, and thank you! |
I think this issue would be worth transferring this to the pact-jvm repository, if you are happy with me doing that 👍🏾 |
ok I get it, thanks! |
BTW, I am just testing this out as part of a separate issue and I think you might need to explicitly set the See below
|
If I want to use the @PactConsumerTest annotation, which jar package do I need to import? |
When I tried to run the tests using the Maven dependency(version 4.4.1) and code provided in the documentation, I encountered an error stating that "@PactConsumerTest" cannot be found. When I remove "@PactConsumerTest" and run the program,The following error occurred:
java.lang.UnsupportedOperationException: Method createPact does not conform required method signature 'public au.com.dius.pact.core.model.V4Pact xxx(PactBuilder builder)' I modified the example code as follows to resolve the issue:
The text was updated successfully, but these errors were encountered: