01: package test.net.sourceforge.pmd.rules.codesize;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class CodesizeRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("codesize", "ExcessivePublicCount");
12: addRule("codesize", "ExcessiveClassLength");
13: addRule("codesize", "ExcessiveParameterList");
14: addRule("codesize", "ExcessiveMethodLength");
15: addRule("codesize", "NcssConstructorCount");
16: addRule("codesize", "NcssMethodCount");
17: addRule("codesize", "NcssTypeCount");
18: addRule("codesize", "NPathComplexity");
19: addRule("codesize", "TooManyFields");
20: addRule("codesize", "TooManyMethods");
21: }
22:
23: public static junit.framework.Test suite() {
24: return new junit.framework.JUnit4TestAdapter(
25: CodesizeRulesTest.class);
26: }
27: }
|