[apex] ApexAssertionsShouldIncludeMessage and ApexUnitTestClassShouldHaveAsserts: support new Assert class (introduced with Apex v56.0) #4096
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version:
all
Rules:
Description:
With the Winter 23' release, a new class can be used to perform assertion in test class.
We have to add the new methods to existing rule to avoid false positive when this class will be used.
Apex class Assert
Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line ..., but that's wrong. That's a false positive.
Running PMD through: [VS Code]
The text was updated successfully, but these errors were encountered: