public abstract class AbstractRuleSetFactoryTest extends Object
| Constructor and Description |
|---|
AbstractRuleSetFactoryTest() |
| Modifier and Type | Method and Description |
|---|---|
protected static RuleSetReferenceId |
createRuleSetReferenceId(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 Exception
Exception - any errorpublic void testAllPMDBuiltInRulesMeetConventions()
throws Exception
Exception - any errorpublic void testXmlSchema()
throws Exception
Exception - any errorpublic void testDtd()
throws Exception
Exception - any errorpublic void testReadWriteRoundTrip()
throws Exception
Exception - any errorprotected static RuleSetReferenceId createRuleSetReferenceId(String ruleSetXml)
RuleSetReferenceId by the given XML string.ruleSetXml - the ruleset file content as stringRuleSetReferenceIdCopyright © 2002–2016 InfoEther. All rights reserved.