Add unit tests to improve SonarScan tests code covarage#1836
Conversation
Yavor16
left a comment
There was a problem hiding this comment.
Automated code review by MTA Quality Agent — 1 finding(s).
| public OperationLogStorageException(String message, Throwable cause) { | ||
| super(message, cause); | ||
| super(cause, message); | ||
| } |
There was a problem hiding this comment.
Severity: CRITICAL · Confidence: 97
The Throwable and String arguments to super() are swapped. Exception(Throwable cause, String message) is not a valid Throwable constructor signature — Java's Exception has Exception(String message, Throwable cause). This will cause a compile error (the call won't compile) or, if a matching constructor does exist on a parent, silently discard the message string and misplace the cause.
Evidence: super(cause, message);
Fix:
| } | |
| super(message, cause); |
MTA Quality Report — cloudfoundry/multiapps-controller PR #1836Jira: LMCROSSITXSADEPLOY-3258
Code Review1 finding(s): 1 posted inline · 0 general. See the inline review on the PR diff for posted findings. SecurityNo security vulnerabilities found. The PR consists almost entirely of new JUnit/Mockito unit test files (58 of 59 changed files). The one production file change ( SonarCloudNo SonarCloud check run found for this PR. The available check runs are: Note — CI failures: Two checks failed:
Dependency CVEs✅ No new CVEs — this PR does not modify any dependency files ( |
| sonar.coverage.exclusions=\ | ||
| multiapps-controller-core-test/**,\ | ||
| multiapps-controller-persistence-test/**,\ | ||
| multiapps-controller-database-migration/**,\ |
There was a problem hiding this comment.
remove this from the exclusions
LMCROSSITXSADEPLOY-3258