View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.rule.empty;
5   
6   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
7   
8   public class EmptyRulesTest extends SimpleAggregatorTst {
9   
10      private static final String RULESET = "java-empty";
11  
12      @Override
13      public void setUp() {
14          addRule(RULESET, "EmptyCatchBlock");
15          addRule(RULESET, "EmptyFinallyBlock");
16          addRule(RULESET, "EmptyIfStmt");
17          addRule(RULESET, "EmptyInitializer");
18          addRule(RULESET, "EmptyStatementBlock");
19          addRule(RULESET, "EmptyStatementNotInLoop");
20          addRule(RULESET, "EmptyStaticInitializer");
21          addRule(RULESET, "EmptySwitchStatements");
22          addRule(RULESET, "EmptySynchronizedBlock");
23          addRule(RULESET, "EmptyTryBlock");
24          addRule(RULESET, "EmptyWhileStmt");
25      }
26  }