Menu

#949 False positive from TestClassWithoutTestCases

open
pmd (543)
5
2012-10-07
2010-11-02
Anonymous
No

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.

Discussion


Log in to post a comment.