SONARJAVA-6752 Implement verifyIssueOnProject in JavaCheckVerifier and modernize MissingPackageInfoCheckTest - #5919
Conversation
…singPackageInfoCheckTest Implement the previously unimplemented verifyIssueOnProject() method in JavaCheckVerifier so that tests can use CheckVerifier.newVerifier() instead of the deprecated newInternalVerifier(). Migrate MissingPackageInfoCheckTest to use the modern API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract shared scanning setup into scanFiles() helper to eliminate duplication between createVerifier() and verifyIssueOnProject(). Add tests covering all error paths in verifyIssueOnProject. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
alex-meseldzija-sonarsource
left a comment
There was a problem hiding this comment.
LGTM
alex-meseldzija-sonarsource
left a comment
There was a problem hiding this comment.
LGTM
|
The target branch was unlocked and auto-merge was canceled to prevent unexpected actions. |
Code Review ✅ Approved 1 resolved / 1 findingsImplements ✅ 1 resolved✅ Quality: scanFilesForProjectIssues duplicates createVerifier scanning logic
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |




Summary
This is to fix the Quality Gate.
verifyIssueOnProject()method inJavaCheckVerifier(thenewVerifier()backend)MissingPackageInfoCheckTestfrom the deprecatednewInternalVerifier()tonewVerifier()JavaCheckVerifierTestto verifyverifyIssueOnProjectworks instead of asserting it throwsPart of RC-16
Test plan
MissingPackageInfoCheckTesttests passJavaCheckVerifierTesttests passInternalCheckVerifierTesttests pass🤖 Generated with Claude Code