Class AbstractRuleSetFactoryTest


  • public abstract class AbstractRuleSetFactoryTest
    extends Object
    Base test class to verify the language's rulesets. This class should be subclassed for each language.
    • Field Detail

      • validXPathClassNames

        protected Set<String> validXPathClassNames
    • Constructor Detail

      • AbstractRuleSetFactoryTest

        public AbstractRuleSetFactoryTest()
      • AbstractRuleSetFactoryTest

        public AbstractRuleSetFactoryTest​(String... languagesToSkip)
        Constructor used when a module that depends on another module wants to filter out the dependee's rulesets.
        Parameters:
        languagesToSkip - Languages terse names that appear in the classpath via a dependency, but should be skipped because they aren't the primary language which the concrete instance of this class is testing.
      • AbstractRuleSetFactoryTest

        public AbstractRuleSetFactoryTest​(Language... languagesToSkip)
    • Method Detail

      • hasCorrectEncoding

        @Deprecated
        public static boolean hasCorrectEncoding​(String fileName)
                                          throws IOException
        Deprecated.
        Since 7.17.0. This method will be removed. PMD has the rule "MissingEncoding" for XML files that is used instead.
        Throws:
        IOException