Package net.sourceforge.pmd.test
Class SimpleAggregatorTst
java.lang.Object
net.sourceforge.pmd.test.RuleTst
net.sourceforge.pmd.test.SimpleAggregatorTst
Simple setup for a rule unit test,
capable of testing multiple rules.
Override setUp()
to register the
rules, that should be tested via calls to
addRule(String, String)
.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sourceforge.pmd.test.RuleTst
findRule, getExtraRules, runTests, runTests
-
Constructor Details
-
SimpleAggregatorTst
public SimpleAggregatorTst()
-
-
Method Details
-
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");
-
addRule
Add new XML tests associated with the rule to the test suite. This should be called from the setup method. -
getRules
Gets all configured rules.
-