Repository navigation
Conversation
Signed-off-by: A-Deepak1610 <[email protected]>
|
Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! |
There was a problem hiding this comment.
Pull request overview
This PR refactors GraphQLTestRunner#extractTestReturnMessage to generate GraphQL schema validation error messages with proper newline separators and to ensure lastValidationErrors is reliably cleared after use, preventing cross-run state leakage.
Changes:
- Fix newline formatting by replacing the literal
"/n"concatenation withString.join(System.lineSeparator(), ...). - Simplify message construction by removing manual
StringBuilderlogic. - Guarantee
lastValidationErrorsis reset via afinallyblock after message extraction.
|
Is there any update on this pr |
|
You are now a Microcks community contributor! 💖 Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Kudos and please keep going, we need you 🙌 |
Signed-off-by: A-Deepak1610 <[email protected]> Co-authored-by: A-Deepak1610 <[email protected]> (cherry picked from commit 5daa2dd)
Description
Fixed incorrect newline formatting in GraphQL test validation error messages in
GraphQLTestRunner."/n"instead of a proper newline character, producing malformed output.StringBuilderconcatenation withString.join(System.lineSeparator(), ...)for clearer, more idiomatic error message construction.finallyblock to guaranteelastValidationErrorsis reset after consumption, avoiding potential state leakage between test runs.Testing
Verified locally via
mvn clean installandmvn spotless:check— build passes with no formatting violations.Related issue(s)
No related issue — found while reviewing the codebase.