1   package test.net.sourceforge.pmd.rules.strings;
2   
3   import net.sourceforge.pmd.Rule;
4   import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
5   
6   public class UseIndexOfCharTest extends SimpleAggregatorTst  {
7   
8       private Rule rule;
9   
10      public void setUp() {
11          rule = findRule("rulesets/strings.xml", "UseIndexOfChar");
12      }
13  
14      public void testAll() {
15         runTests(rule);
16      }
17  }