public abstract class AbstractRuleSetFactoryTest
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Set<java.lang.String> |
validXPathClassNames |
Constructor | Description |
---|---|
AbstractRuleSetFactoryTest() |
Modifier and Type | Method | Description |
---|---|---|
protected static RuleSetReferenceId |
createRuleSetReferenceId(java.lang.String ruleSetXml) |
Create a
RuleSetReferenceId by the given XML string. |
static void |
init() |
Setups the XML parser with validation.
|
void |
testAllPMDBuiltInRulesMeetConventions() |
Checks all rulesets of all languages on the classpath and verifies that
all required attributes for all rules are specified.
|
void |
testDtd() |
Verifies that all rulesets are valid XML according to the DTD.
|
void |
testReadWriteRoundTrip() |
Reads and writes the rulesets to make sure, that no data is lost if the
rulests are processed.
|
void |
testXmlSchema() |
Verifies that all rulesets are valid XML according to the xsd schema.
|
public static void init() throws java.lang.Exception
java.lang.Exception
- any errorpublic void testAllPMDBuiltInRulesMeetConventions() throws java.lang.Exception
java.lang.Exception
- any errorpublic void testXmlSchema() throws java.lang.Exception
java.lang.Exception
- any errorpublic void testDtd() throws java.lang.Exception
java.lang.Exception
- any errorpublic void testReadWriteRoundTrip() throws java.lang.Exception
java.lang.Exception
- any errorprotected static RuleSetReferenceId createRuleSetReferenceId(java.lang.String ruleSetXml)
RuleSetReferenceId
by the given XML string.ruleSetXml
- the ruleset file content as stringRuleSetReferenceId
Copyright © 2002–2018 PMD. All rights reserved.