[java] JUnitTestsShouldIncludeAssert - false positives with lambdas and static methods #2147
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version:
6.20.0
Rule:
JUnitTestsShouldIncludeAssert
Description:
asserts in static method calls and in lambdas are ignored, triggering false positives
Code Sample demonstrating the issue:
(In the actual failing code, the assertSuccessResponse method is in a different class as a static helper method).
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
Maven, OpenJDK from AdoptOpenJDK 1.8
The text was updated successfully, but these errors were encountered: