False positive from TestClassWithoutTestCases
A source code analyzer
Brought to you by:
adangel,
juansotuyo
I am getting a false positive from rule TestClassWithoutTestCases (from junit.xml).
I have an abstract class with several test methods and several abstract helper methods. I have several classes that extend the abstract class and implement the abstract helper methods. The child classes are fine and do not add any additional methods. Everything works just fine. However, PMD reports that there are no test methods in the child classes. That is the problem. The tests are okay because they inherit test methods from the parent class.