This rule is defined by the following Java class: net.sourceforge.pmd.rules.junit.TestClassWithoutTestCases
Example:
//Consider changing the name of the class if it is not a test //Consider adding test methods if it is a test public class CarTest { public static void main(String[] args) { // do something } // code }