1   
2    package> 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 UseArraysAsListTest extends SimpleAggregatorTst {
8    
9        private Rule rule;
10   
11       public void setUp() {
12           rule = findRule("optimizations", "UseArraysAsList");
13       }
14   
15       // FIXME should be able to catch case where Integer[] is passed
16       // as an argument... but may need to rewrite in Java for that.
17       public void testAll() {
18           runTests(rule);
19       }
20   }