Class TestDescriptor

  • public class TestDescriptor
    extends Object
    Stores the information required to run a complete test.
    • Constructor Detail

      • TestDescriptor

        public TestDescriptor()
      • TestDescriptor

        public TestDescriptor​(String code,
                              String description,
                              int numberOfProblemsExpected,
                              Rule rule)
    • Method Detail

      • getNumberInDocument

        public int getNumberInDocument()
      • setNumberInDocument

        public void setNumberInDocument​(int numberInDocument)
      • setExpectedMessages

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

        public List<String> getExpectedMessages()
      • setExpectedLineNumbers

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

        public List<Integer> getExpectedLineNumbers()
      • setProperties

        public void setProperties​(Properties properties)
      • getProperties

        public Properties getProperties()
      • getCode

        public String getCode()
      • getDescription

        public String getDescription()
      • getNumberOfProblemsExpected

        public int getNumberOfProblemsExpected()
      • getRule

        public Rule getRule()
      • getReinitializeRule

        public boolean getReinitializeRule()
      • setReinitializeRule

        public void setReinitializeRule​(boolean reinitializeRule)
      • inRegressionTestMode

        public static boolean inRegressionTestMode()
        Checks whether we are testing for regression problems only. Return value is based on the system property "pmd.regress".
        false if system property "pmd.regress" is set to false, true otherwise
      • isRegressionTest

        public boolean isRegressionTest()
      • setRegressionTest

        public void setRegressionTest​(boolean isRegressionTest)
      • setUseAuxClasspath

        public void setUseAuxClasspath​(boolean useAuxClasspath)
      • isUseAuxClasspath

        public boolean isUseAuxClasspath()