Rule Set:
TestClassWithoutTestCases
Description:
In Junit5 tests, tests do not require a public modifier any longer. However, PMD reports (without the modifier) that there are no test cases.
Code Sample demonstrating the issue:
import org.junit.jupiter.api.Test; class JUnit5Test { @Test void myTest() { } }
Adding public
to the test removes the error.
Running PMD through: Maven
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