View Javadoc

    1   package net.sourceforge.pmd.lang.java.rule.codesize;
    2
    3   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
    4
    5   import org.junit.Before;
    6
    7
    8   public class CodesizeRulesTest extends SimpleAggregatorTst {
    9
    10      private static final String RULESET = "java-codesize";
    11
    12      @Before
    13      public void setUp() {
    14          addRule(RULESET, "ExcessivePublicCount");
    15          addRule(RULESET, "ExcessiveClassLength");
    16          addRule(RULESET, "ExcessiveParameterList");
    17          addRule(RULESET, "ExcessiveMethodLength");
    18          addRule(RULESET, "NcssConstructorCount");
    19          addRule(RULESET, "NcssMethodCount");
    20          addRule(RULESET, "NcssTypeCount");
    21          addRule(RULESET, "NPathComplexity");
    22          addRule(RULESET, "TooManyFields");
    23          addRule(RULESET, "TooManyMethods");
    24      }
    25
    26      public static junit.framework.Test suite() {
    27          return new junit.framework.JUnit4TestAdapter(CodesizeRulesTest.class);
    28      }
    29  }