[java] JUnit4TestShouldUseBeforeAnnotation: False positive when TestNG is used
A source code analyzer
Brought to you by:
adangel,
juansotuyo
This will be fixed with PMD 5.3.6 and later. If an import of testng is found, this rule won't trigger anymore.
Commit: https://github.com/pmd/pmd/commit/2a52757aa550731e82d400e727a00478d1a36af2
Alternatively you can disable the JUnit rules, as you are using TestNG and not JUnit :) As the name of the rules indicate, they are supposed to be used with JUnit...
Great!
For sure! That's what I will do.
+1 but in this case the name should changed or TestNG should have its own rules.