Class TestDescriptor
- java.lang.Object
-
- net.sourceforge.pmd.testframework.TestDescriptor
-
@Deprecated public class TestDescriptor extends Object
Deprecated.UseRuleTestDescriptorinsteadStores the information required to run a complete test.
-
-
Constructor Summary
Constructors Constructor Description TestDescriptor()Deprecated.TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule)Deprecated.TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule, LanguageVersion languageVersion)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCode()Deprecated.StringgetDescription()Deprecated.List<Integer>getExpectedLineNumbers()Deprecated.List<String>getExpectedMessages()Deprecated.LanguageVersiongetLanguageVersion()Deprecated.intgetNumberInDocument()Deprecated.intgetNumberOfProblemsExpected()Deprecated.PropertiesgetProperties()Deprecated.booleangetReinitializeRule()Deprecated.RulegetRule()Deprecated.StringgetTestMethodName()Deprecated.static booleaninRegressionTestMode()Deprecated.Checks whether we are testing for regression problems only.booleanisRegressionTest()Deprecated.booleanisUseAuxClasspath()Deprecated.voidsetExpectedLineNumbers(List<Integer> expectedLineNumbers)Deprecated.voidsetExpectedMessages(List<String> messages)Deprecated.voidsetNumberInDocument(int numberInDocument)Deprecated.voidsetProperties(Properties properties)Deprecated.voidsetRegressionTest(boolean isRegressionTest)Deprecated.voidsetReinitializeRule(boolean reinitializeRule)Deprecated.voidsetUseAuxClasspath(boolean useAuxClasspath)Deprecated.
-
-
-
Constructor Detail
-
TestDescriptor
public TestDescriptor()
Deprecated.
-
TestDescriptor
public TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule)
Deprecated.
-
TestDescriptor
public TestDescriptor(String code, String description, int numberOfProblemsExpected, Rule rule, LanguageVersion languageVersion)
Deprecated.
-
-
Method Detail
-
getNumberInDocument
public int getNumberInDocument()
Deprecated.
-
setNumberInDocument
public void setNumberInDocument(int numberInDocument)
Deprecated.
-
setExpectedLineNumbers
public void setExpectedLineNumbers(List<Integer> expectedLineNumbers)
Deprecated.
-
setProperties
public void setProperties(Properties properties)
Deprecated.
-
getProperties
public Properties getProperties()
Deprecated.
-
getCode
public String getCode()
Deprecated.
-
getLanguageVersion
public LanguageVersion getLanguageVersion()
Deprecated.
-
getDescription
public String getDescription()
Deprecated.
-
getNumberOfProblemsExpected
public int getNumberOfProblemsExpected()
Deprecated.
-
getRule
public Rule getRule()
Deprecated.
-
getReinitializeRule
public boolean getReinitializeRule()
Deprecated.
-
setReinitializeRule
public void setReinitializeRule(boolean reinitializeRule)
Deprecated.
-
inRegressionTestMode
public static boolean inRegressionTestMode()
Deprecated.Checks whether we are testing for regression problems only. Return value is based on the system property "pmd.regress".- Returns:
falseif system property "pmd.regress" is set tofalse,trueotherwise
-
isRegressionTest
public boolean isRegressionTest()
Deprecated.
-
setRegressionTest
public void setRegressionTest(boolean isRegressionTest)
Deprecated.
-
setUseAuxClasspath
public void setUseAuxClasspath(boolean useAuxClasspath)
Deprecated.
-
isUseAuxClasspath
public boolean isUseAuxClasspath()
Deprecated.
-
getTestMethodName
public String getTestMethodName()
Deprecated.
-
-