01: package net.sourceforge.pmd;
02:
03: /**
04: * This is a Rule implementation which can be used in scenarios where an actual
05: * functional Rule is not needed. For example, during unit testing, or as
06: * an editable surrogate used by IDE plugins.
07: */
08: public class MockRule extends AbstractRule {
09:
10: public MockRule() {
11: super ();
12: }
13:
14: public MockRule(String name, String description, String message,
15: String ruleSetName, int priority) {
16: this (name, description, message, ruleSetName);
17: setPriority(priority);
18: }
19:
20: public MockRule(String name, String description, String message,
21: String ruleSetName) {
22: super();
23: setName(name);
24: setDescription(description);
25: setMessage(message);
26: setRuleSetName(ruleSetName);
27: }
28: }
|