public class TestDescriptor extends Object
Constructor and Description |
---|
TestDescriptor() |
TestDescriptor(String code,
String description,
int numberOfProblemsExpected,
Rule rule) |
TestDescriptor(String code,
String description,
int numberOfProblemsExpected,
Rule rule,
LanguageVersion languageVersion) |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getDescription() |
List<Integer> |
getExpectedLineNumbers() |
List<String> |
getExpectedMessages() |
LanguageVersion |
getLanguageVersion() |
int |
getNumberInDocument() |
int |
getNumberOfProblemsExpected() |
Properties |
getProperties() |
boolean |
getReinitializeRule() |
Rule |
getRule() |
static boolean |
inRegressionTestMode()
Checks whether we are testing for regression problems only.
|
boolean |
isRegressionTest() |
void |
setExpectedLineNumbers(List<Integer> expectedLineNumbers) |
void |
setExpectedMessages(List<String> messages) |
void |
setNumberInDocument(int numberInDocument) |
void |
setProperties(Properties properties) |
void |
setRegressionTest(boolean isRegressionTest) |
void |
setReinitializeRule(boolean reinitializeRule) |
public TestDescriptor()
public TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule)
public TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule, LanguageVersion languageVersion)
public int getNumberInDocument()
public void setNumberInDocument(int numberInDocument)
public void setProperties(Properties properties)
public Properties getProperties()
public String getCode()
public LanguageVersion getLanguageVersion()
public String getDescription()
public int getNumberOfProblemsExpected()
public Rule getRule()
public boolean getReinitializeRule()
public void setReinitializeRule(boolean reinitializeRule)
public static boolean inRegressionTestMode()
false
if system property "pmd.regress" is set to false
, true
otherwisepublic boolean isRegressionTest()
public void setRegressionTest(boolean isRegressionTest)
Copyright © 2002-2014 InfoEther. All Rights Reserved.