Class SimpleAggregatorTst
- java.lang.Object
-
- net.sourceforge.pmd.testframework.RuleTst
-
- net.sourceforge.pmd.testframework.SimpleAggregatorTst
-
public abstract class SimpleAggregatorTst extends RuleTst
Simple setup for a rule unit test, capable of testing multiple rules.Override
setUp()
to register the rules, that should be tested via calls toaddRule(String, String)
.
-
-
Constructor Summary
Constructors Constructor Description SimpleAggregatorTst()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRule(String ruleSet, String ruleName)
Add new XML tests associated with the rule to the test suite.protected List<Rule>
getRules()
Gets all configured rules.protected void
setUp()
Configure the rule tests to be executed.
-
-
-
Method Detail
-
setUp
protected void setUp()
Configure the rule tests to be executed. Override this method in subclasses by calling addRule, e.g.addRule("path/myruleset.xml", "CustomRule");
- Overrides:
setUp
in classRuleTst
- See Also:
addRule(String, String)
-
addRule
protected void addRule(String ruleSet, String ruleName)
Add new XML tests associated with the rule to the test suite. This should be called from the setup method.
-
-