1
2
3
4
5
6
7 package test/net/sourceforge/pmd/rules/optimization/package-summary.html">> test.net.sourceforge.pmd.rules.optimization;
8
9 import net.sourceforge.pmd.Rule;
10 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
11
12 /***
13 * Tests for the rule AvoidInstantiatingObjectsInLoops
14 *
15 * @author mgriffa
16 */
17 public class AvoidInstantiatingObjectsInLoopsTest extends SimpleAggregatorTst {
18
19 private Rule rule;
20
21 public void setUp() {
22 rule = findRule("optimizations", "AvoidInstantiatingObjectsInLoops");
23 }
24
25 public void testAll() {
26 runTests(rule);
27
28 }
29 }