javadoc comments added

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5574 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-10-24 18:11:20 +00:00
parent d752f1e9d1
commit 5ba3fbbf6c

View File

@ -43,10 +43,17 @@ public abstract class SimpleAggregatorTst extends RuleTst {
private List<Rule> rules = new ArrayList<Rule>(); private List<Rule> rules = new ArrayList<Rule>();
/**
* Add new XML tests associated with the rule to the test suite. This should
* be called from the setup method.
*/
protected void addRule(String ruleSet, String ruleName) { protected void addRule(String ruleSet, String ruleName) {
rules.add(findRule(ruleSet, ruleName)); rules.add(findRule(ruleSet, ruleName));
} }
/**
* Run a set of tests for all rules added in the setup method.
*/
@Test @Test
public void testAll() { public void testAll() {
for (Rule r : rules) { for (Rule r : rules) {