1
2 /***
3 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
4 */
5 package test/net/sourceforge/pmd/rules/design/package-summary.html">> test.net.sourceforge.pmd.rules.design;
6
7 import net.sourceforge.pmd.Rule;
8 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
9 import test.net.sourceforge.pmd.testframework.TestDescriptor;
10
11 public class ExcessiveMethodLengthTest extends SimpleAggregatorTst {
12 private Rule rule;
13 private TestDescriptor[] tests;
14
15 public void setUp() {
16 rule = findRule("codesize", "ExcessiveMethodLength");
17 tests = extractTestsFromXml(rule);
18 }
19
20 public void testAll() {
21 rule.addProperty("minimum", "10");
22 runTests(tests);
23 }
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 }
40