Class TestDescriptor
- java.lang.Object
-
- net.sourceforge.pmd.testframework.TestDescriptor
-
@Deprecated public class TestDescriptor extends Object
Deprecated.UseRuleTestDescriptor
insteadStores 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 String
getCode()
Deprecated.String
getDescription()
Deprecated.List<Integer>
getExpectedLineNumbers()
Deprecated.List<String>
getExpectedMessages()
Deprecated.LanguageVersion
getLanguageVersion()
Deprecated.int
getNumberInDocument()
Deprecated.int
getNumberOfProblemsExpected()
Deprecated.Properties
getProperties()
Deprecated.boolean
getReinitializeRule()
Deprecated.Rule
getRule()
Deprecated.String
getTestMethodName()
Deprecated.static boolean
inRegressionTestMode()
Deprecated.Checks whether we are testing for regression problems only.boolean
isRegressionTest()
Deprecated.boolean
isUseAuxClasspath()
Deprecated.void
setExpectedLineNumbers(List<Integer> expectedLineNumbers)
Deprecated.void
setExpectedMessages(List<String> messages)
Deprecated.void
setNumberInDocument(int numberInDocument)
Deprecated.void
setProperties(Properties properties)
Deprecated.void
setRegressionTest(boolean isRegressionTest)
Deprecated.void
setReinitializeRule(boolean reinitializeRule)
Deprecated.void
setUseAuxClasspath(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:
false
if system property "pmd.regress" is set tofalse
,true
otherwise
-
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.
-
-