Affects PMD Version:
6.23
Description:
JUnitSpelling requires some tweaks in terms of documentation and produces false positives for:
TestCase
but has a setup
methodsetup
methodCode Sample demonstrating the issue:
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class BTest { @BeforeEach void setup() { } @Test void test() { } }
import org.junit.Before; import org.junit.Test; public class BTest { @Before void setup() { } @Test void test() { } }
Running PMD through: [CLI]
I suggest two things:
isJUnit5Class
from AbstractJUnitRule
can be used).TestCase
WDYT?
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