Class AbstractRuleSetFactoryTest
- java.lang.Object
 - 
- net.sourceforge.pmd.test.lang.rule.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 Summary
Fields Modifier and Type Field Description protected Set<String>validXPathClassNames 
- 
Constructor Summary
Constructors Constructor Description AbstractRuleSetFactoryTest()AbstractRuleSetFactoryTest(String... languagesToSkip)Constructor used when a module that depends on another module wants to filter out the dependee's rulesets.AbstractRuleSetFactoryTest(Language... languagesToSkip) 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanhasCorrectEncoding(String fileName)Deprecated.Since 7.17.0. 
 - 
 
- 
- 
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
 
 - 
 
 -