View Javadoc

1   package net.sourceforge.pmd.lang.java.rule.naming;
2   
3   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
4   
5   import org.junit.Before;
6   
7   
8   public class NamingRulesTest extends SimpleAggregatorTst {
9       
10      private static final String RULESET = "java-naming";
11  
12      @Before
13      public void setUp() {
14          addRule(RULESET, "AbstractNaming");
15          addRule(RULESET, "AvoidDollarSigns");
16          addRule(RULESET, "AvoidFieldNameMatchingMethodName");
17          addRule(RULESET, "AvoidFieldNameMatchingTypeName");
18          addRule(RULESET, "BooleanGetMethodName");
19          addRule(RULESET, "ClassNamingConventions");
20          addRule(RULESET, "LongVariable");
21          addRule(RULESET, "MethodNamingConventions");
22          addRule(RULESET, "MethodWithSameNameAsEnclosingClass");
23          addRule(RULESET, "MisleadingVariableName");
24          addRule(RULESET, "NoPackage");
25          addRule(RULESET, "PackageCase");
26          addRule(RULESET, "ShortMethodName");
27          addRule(RULESET, "ShortClassName");
28          addRule(RULESET, "ShortVariable");
29          addRule(RULESET, "SuspiciousConstantFieldName");
30          addRule(RULESET, "SuspiciousEqualsMethodName");
31          addRule(RULESET, "SuspiciousHashcodeMethodName");
32          addRule(RULESET, "VariableNamingConventions");
33  	addRule(RULESET, "GenericsNaming");
34      }
35  
36      public static junit.framework.Test suite() {
37          return new junit.framework.JUnit4TestAdapter(NamingRulesTest.class);
38      }
39  }