Affects PMD Version:
6.43.0
Rule:
JUnit5TestShouldBePackagePrivate
CommentDefaultAccessModifier
Description:
These 2 rules conflict with each other in JUnit5 test cases
Code Sample demonstrating the issue:
import org.junit.jupiter.api.Test; class SomeTest { @Test void test() { // run some test } }
Expected outcome:
CommentDefaultAccessModifier is not triggered in JUnit5 test class
PMD reports a violation at line ..., but that's wrong. That's a false positive.
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
Gradle
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4