[apex] Add test for empty xpath checks.

This commit is contained in:
Jan Aertgeerts
2017-09-17 18:45:37 +02:00
parent c3da9ec086
commit cacb82ace5

View File

@@ -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");
}
}