01: package test.net.sourceforge.pmd.rules.naming;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class NamingRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("naming", "AbstractNaming");
12: addRule("naming", "AvoidDollarSigns");
13: addRule("naming", "AvoidFieldNameMatchingMethodName");
14: addRule("naming", "AvoidFieldNameMatchingTypeName");
15: addRule("naming", "BooleanGetMethodName");
16: addRule("naming", "ClassNamingConventions");
17: addRule("naming", "LongVariable");
18: addRule("naming", "MethodNamingConventions");
19: addRule("naming", "MethodWithSameNameAsEnclosingClass");
20: addRule("naming", "MisleadingVariableName");
21: addRule("naming", "NoPackage");
22: addRule("naming", "PackageCase");
23: addRule("naming", "ShortMethodName");
24: addRule("naming", "ShortVariable");
25: addRule("naming", "SuspiciousConstantFieldName");
26: addRule("naming", "SuspiciousEqualsMethodName");
27: addRule("naming", "SuspiciousHashcodeMethodName");
28: addRule("naming", "VariableNamingConventions");
29: }
30:
31: public static junit.framework.Test suite() {
32: return new junit.framework.JUnit4TestAdapter(
33: NamingRulesTest.class);
34: }
35: }
|