[apex] Add test for empty xpath checks.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.apex.rule.empty;
|
||||
|
||||
import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
|
||||
|
||||
public class EmptyRulesTest extends SimpleAggregatorTst {
|
||||
|
||||
private static final String RULESET = "apex-empty";
|
||||
|
||||
@Override
|
||||
public void setUp() {
|
||||
addRule(RULESET, "EmptyCatchBlock");
|
||||
addRule(RULESET, "EmptyFinallyBlock");
|
||||
addRule(RULESET, "EmptyIfStmt");
|
||||
addRule(RULESET, "EmptyStaticInitializer");
|
||||
addRule(RULESET, "EmptyTryBlock");
|
||||
addRule(RULESET, "EmptyWhileStmt");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user