1   
2    /***
3     * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
4     */
5    package> test.net.sourceforge.pmd.rules.design;
6    
7    import net.sourceforge.pmd.Rule;
8    import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
9    
10   public class SwitchDensityTest extends SimpleAggregatorTst {
11   
12       private Rule rule;
13   
14       public void setUp() {
15           rule = findRule("design", "SwitchDensity");
16           rule.addProperty("minimum", "4");
17       }
18   
19       public void testAll() {
20           runTests(rule);
21       }
22   }