We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
I want to pass the dynamic values to @Pact annotation from the property file.
@Pact(provider = "Profile_Provider", consumer = "Profile_Consumer") public PactFragment createFragment(PactDslWithProvider builder) { Map<String, String> headers = new HashMap<>(); headers.put("Content-Type", "application/json;charset=UTF-8"); return builder.uponReceiving("a request for profile").path("/producers").method("GET").willRespondWith() .headers(headers).status(200) .body("[{"producerId":"119bbacd","firstName":"jomon","lastName":"varghese","email":"jomon@yahoomail.com"},{"producerId":"jkjk1jkjk2","firstName":"joy","lastName":"varghese","email":"joy@abcd.com"}]") .toFragment(); }
Can you please help the same.
Thanks, Yamuna
The text was updated successfully, but these errors were encountered:
feat: allow expressions with @Pact annotation #989
8725d4c
Version 4.0.5 has been released with this change
Sorry, something went wrong.
6f28115
(cherry picked from commit 8725d4c)
No branches or pull requests
I want to pass the dynamic values to @Pact annotation from the property file.
@Pact(provider = "Profile_Provider", consumer = "Profile_Consumer")
public PactFragment createFragment(PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<>();
headers.put("Content-Type", "application/json;charset=UTF-8");
return builder.uponReceiving("a request for
profile").path("/producers").method("GET").willRespondWith()
.headers(headers).status(200)
.body("[{"producerId":"119bbacd","firstName":"jomon","lastName":"varghese","email":"jomon@yahoomail.com"},{"producerId":"jkjk1jkjk2","firstName":"joy","lastName":"varghese","email":"joy@abcd.com"}]")
.toFragment();
}
Can you please help the same.
Thanks,
Yamuna
The text was updated successfully, but these errors were encountered: