View Javadoc

1   package net.sourceforge.pmd;
2   
3   /**
4    * This is a Rule implementation which can be used in scenarios where an actual
5    * functional Rule is not needed.  For example, during unit testing, or as
6    * an editable surrogate used by IDE plugins.
7    */
8   public class MockRule extends AbstractRule {
9   
10  	public MockRule() {
11  		super();
12  	}
13  
14  	public MockRule(String name, String description, String message, String ruleSetName, int priority) {
15  		this(name, description, message, ruleSetName);
16  		setPriority(priority);
17  	}
18  
19  	public MockRule(String name, String description, String message, String ruleSetName) {
20  		super();
21  		setName(name);
22  		setDescription(description);
23  		setMessage(message);
24  		setRuleSetName(ruleSetName);
25  	}
26  }