View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.plsql.rule.codesize;
5   
6   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
7   
8   import org.junit.Before;
9   
10  
11  public class CodesizeRulesTest extends SimpleAggregatorTst {
12  
13      private static final String RULESET = "plsql-codesize";
14  
15      @Before
16      public void setUp() {
17          addRule(RULESET, "NPathComplexity");
18          addRule(RULESET, "ExcessiveTypeLength");
19          addRule(RULESET, "CyclomaticComplexity");
20          addRule(RULESET, "ExcessiveObjectLength");
21          addRule(RULESET, "ExcessivePackageBodyLength");
22          addRule(RULESET, "ExcessivePackageSpecificationLength");
23          addRule(RULESET, "ExcessiveParameterList");
24          addRule(RULESET, "ExcessiveMethodLength");
25          addRule(RULESET, "NcssMethodCount");
26          addRule(RULESET, "NcssObjectCount");
27          addRule(RULESET, "TooManyFields");
28      }
29  
30      public static junit.framework.Test suite() {
31          return new junit.framework.JUnit4TestAdapter(CodesizeRulesTest.class);
32      }
33  }