|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.AbstractRuleSetFactoryTest
public abstract class AbstractRuleSetFactoryTest
Base test class to verify the language's rulesets. This class should be subclassed for each language.
| Constructor Summary | |
|---|---|
AbstractRuleSetFactoryTest()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRuleSetFactoryTest()
| Method Detail |
|---|
public static void init()
throws Exception
Exception - any error
public void testAllPMDBuiltInRulesMeetConventions()
throws Exception
Exception - any error
public void testXmlSchema()
throws Exception
Exception - any error
public void testDtd()
throws Exception
Exception - any error
public void testReadWriteRoundTrip()
throws Exception
Exception - any errorprotected static RuleSetReferenceId createRuleSetReferenceId(String ruleSetXml)
RuleSetReferenceId by the given XML string.
ruleSetXml - the ruleset file content as string
RuleSetReferenceId
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||