1 /***
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package test.net.sourceforge.pmd.rules.design;
5
6 import net.sourceforge.pmd.Rule;
7 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
8
9 /***
10 * Adding this test to validate current working code doesn't break I've been
11 * trying to locate the article referenced. The below code stresses the NPath
12 * rule, and according to its current style, runs 2 tests, one pass and one
13 * fail.
14 *
15 * @author Allan Caplan
16 *
17 */
18 public class NpathComplexityTest extends SimpleAggregatorTst{
19
20 private Rule rule;
21
22 public void setUp() {
23 rule = findRule("codesize", "NPathComplexity");
24 }
25
26 public void testAll() {
27 runTests(rule);
28 }
29 }
30