1 2 package test/net/sourceforge/pmd/rules/optimization/package-summary.html">> test.net.sourceforge.pmd.rules.optimization; 3 4 import net.sourceforge.pmd.Rule; 5 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst; 6 7 public class SimplifyStartsWithTest extends SimpleAggregatorTst { 8 9 private Rule rule; 10 11 public void setUp() { 12 rule = findRule("optimizations", "SimplifyStartsWith"); 13 } 14 15 public void testAll() { 16 runTests(rule); 17 } 18 }