| java.lang.Object test.net.sourceforge.pmd.testframework.RuleTst test.net.sourceforge.pmd.testframework.SimpleAggregatorTst
All known Subclasses: test.net.sourceforge.pmd.rules.finalizers.FinalizersRulesTest, test.net.sourceforge.pmd.rules.clone.CloneRulesTest, test.net.sourceforge.pmd.rules.braces.BracesRulesTest, test.net.sourceforge.pmd.jsp.rules.NoHtmlCommentsTest, test.net.sourceforge.pmd.rules.typeresolution.UnusedImportsTest, test.net.sourceforge.pmd.rules.sunsecure.SunSecureRulesTest, test.net.sourceforge.pmd.rules.basic.BasicRulesTest, test.net.sourceforge.pmd.rules.loggingjakartacommons.LoggingJakartaCommonsRulesTest, test.net.sourceforge.pmd.rules.basic.UnusedNullCheckInEqualsTest, test.net.sourceforge.pmd.rules.javabeans.JavabeansRulesTest, test.net.sourceforge.pmd.jsp.rules.DuplicateJspImportTest, test.net.sourceforge.pmd.rules.controversial.ControversialRulesTest, test.net.sourceforge.pmd.rules.typeresolution.SignatureDeclareThrowsExceptionTest, test.net.sourceforge.pmd.rules.ScratchpadRulesTest, test.net.sourceforge.pmd.jsp.rules.DontNestJsfInJstlIterationTest, test.net.sourceforge.pmd.rules.codesize.CodesizeRulesTest, test.net.sourceforge.pmd.rules.strictexception.StrictExceptionRulesTest, test.net.sourceforge.pmd.jsp.rules.NoLongScriptsTest, test.net.sourceforge.pmd.rules.strings.StringsRulesTest, test.net.sourceforge.pmd.rules.optimizations.OptimizationsRulesTest, test.net.sourceforge.pmd.jsp.rules.NoInlineStyleInformationTest, test.net.sourceforge.pmd.rules.j2ee.J2EERulesTest, test.net.sourceforge.pmd.rules.design.DesignRulesTest, test.net.sourceforge.pmd.jsp.rules.IframeMissingSrcAttributeTest, test.net.sourceforge.pmd.jsp.rules.JspEncodingTest, test.net.sourceforge.pmd.rules.unusedcode.UnusedCodeRulesTest, test.net.sourceforge.pmd.rules.UselessAssignmentRuleTest, test.net.sourceforge.pmd.rules.design.ConfusingTernaryRuleTest, test.net.sourceforge.pmd.rules.coupling.CouplingRulesTest, test.net.sourceforge.pmd.rules.junit.JunitRulesTest, test.net.sourceforge.pmd.rules.loggingjava.LoggingJavaRulesTest, test.net.sourceforge.pmd.properties.PropertyAccessorTest, test.net.sourceforge.pmd.rules.design.UncommentedEmptyMethodRuleTest, test.net.sourceforge.pmd.rules.imports.ImportsRulesTest, test.net.sourceforge.pmd.rules.naming.NamingRulesTest, test.net.sourceforge.pmd.rules.DynamicRuleTest, test.net.sourceforge.pmd.rules.migrating.MigratingRulesTest, test.net.sourceforge.pmd.rules.design.TooManyHttpFilterTest, test.net.sourceforge.pmd.jaxen.RegexpAcceptanceTest, test.net.sourceforge.pmd.jsp.rules.NoScriptletsTest, test.net.sourceforge.pmd.rules.typeresolution.LooseCouplingTest, test.net.sourceforge.pmd.rules.typeresolution.CloneMethodMustImplementCloneableTest, test.net.sourceforge.pmd.rules.strings.AvoidDuplicateLiteralsRuleTest, test.net.sourceforge.pmd.rules.design.UncommentedEmptyConstructorRuleTest, test.net.sourceforge.pmd.jsp.rules.NoJspForwardTest, test.net.sourceforge.pmd.jsp.rules.NoClassAttributeTest, test.net.sourceforge.pmd.rules.design.ConstructorCallsOverridableMethodTest,
SimpleAggregatorTst | abstract public class SimpleAggregatorTst extends RuleTst (Code) | | Standard methods for (simple) testcases.
|
Inner Class :public static class CustomXmlTestClassMethodsRunner extends JUnit4ClassRunner | |
Method Summary | |
protected void | addRule(String ruleSet, String ruleName) Add new XML tests associated with the rule to the test suite. | public void | runTests(Rule rule) Run a set of tests defined in an XML test-data file for a rule. | public void | runTests(Rule rule, String testsFileName) Run a set of tests defined in a XML test-data file. | public void | runTests(TestDescriptor[] tests) Run a set of tests of a certain sourceType. | public void | testAll() Run a set of tests for all rules added in the setup method. |
addRule | protected void addRule(String ruleSet, String ruleName)(Code) | | Add new XML tests associated with the rule to the test suite. This should
be called from the setup method.
|
runTests | public void runTests(Rule rule)(Code) | | Run a set of tests defined in an XML test-data file for a rule. The file
should be ./xml/RuleName.xml relative to the test-class. The format is
defined in test-data.xsd.
|
runTests | public void runTests(Rule rule, String testsFileName)(Code) | | Run a set of tests defined in a XML test-data file. The file should be
./xml/[testsFileName].xml relative to the test-class. The format is
defined in test-data.xsd.
|
runTests | public void runTests(TestDescriptor[] tests)(Code) | | Run a set of tests of a certain sourceType.
|
testAll | public void testAll()(Code) | | Run a set of tests for all rules added in the setup method.
|
Fields inherited from test.net.sourceforge.pmd.testframework.RuleTst | final public static SourceType DEFAULT_SOURCE_TYPE(Code)(Java Doc)
|
|
|