Class TestDescriptor


  • @Deprecated
    public class TestDescriptor
    extends Object
    Deprecated.
    Use RuleTestDescriptor instead
    Stores the information required to run a complete test.
    • 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.
      • setExpectedMessages

        public void setExpectedMessages​(List<String> messages)
        Deprecated.
      • getExpectedMessages

        public List<String> getExpectedMessages()
        Deprecated.
      • setExpectedLineNumbers

        public void setExpectedLineNumbers​(List<Integer> expectedLineNumbers)
        Deprecated.
      • getExpectedLineNumbers

        public List<Integer> getExpectedLineNumbers()
        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 to false, 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.