A B C E F G I M N O P R S T V

A

AbstractAntTestHelper - Class in net.sourceforge.pmd.ant
Quite an ugly classe, arguably useful for just 2 units test - nevertheless as there is a workaround that must be shared by both tests (PMD and CPD's) I felt compelled to move it to a single classes.
AbstractAntTestHelper() - Constructor for class net.sourceforge.pmd.ant.AbstractAntTestHelper
 
AbstractLanguageVersionTest - Class in net.sourceforge.pmd
Base test class for LanguageVersion implementations.
AbstractLanguageVersionTest(String, String, String, LanguageVersion) - Constructor for class net.sourceforge.pmd.AbstractLanguageVersionTest
Creates a new AbstractLanguageVersionTest
AbstractRuleSetFactoryTest - Class in net.sourceforge.pmd
Base test class to verify the language's rulesets.
AbstractRuleSetFactoryTest() - Constructor for class net.sourceforge.pmd.AbstractRuleSetFactoryTest
 
AbstractTokenizerTest - Class in net.sourceforge.pmd.testframework
 
AbstractTokenizerTest() - Constructor for class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
addRule(String, String) - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Add new XML tests associated with the rule to the test suite.
antTestScriptFilename - Variable in class net.sourceforge.pmd.ant.AbstractAntTestHelper
 

B

BaseCLITest - Class in net.sourceforge.pmd.cli
 
BaseCLITest() - Constructor for class net.sourceforge.pmd.cli.BaseCLITest
 
buildTokenizer() - Method in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 

C

checkStatusCode(int) - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
createRuleSetReferenceId(String) - Static method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Create a RuleSetReferenceId by the given XML string.
createTestOutputFile(String) - Method in class net.sourceforge.pmd.cli.BaseCLITest
 

E

expectedTokenCount - Variable in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
extractTestsFromXml(Rule) - Method in class net.sourceforge.pmd.testframework.RuleTst
Extract a set of tests from an XML file.
extractTestsFromXml(Rule, String) - Method in class net.sourceforge.pmd.testframework.RuleTst
 
extractTestsFromXml(Rule, String, String) - Method in class net.sourceforge.pmd.testframework.RuleTst
Extract a set of tests from an XML file with the given name.

F

filter(Filter) - Method in class net.sourceforge.pmd.testframework.PMDTestRunner
 
findRule(String, String) - Method in class net.sourceforge.pmd.testframework.RuleTst
Find a rule in a certain ruleset by name

G

getCleanRuleName(Rule) - Method in class net.sourceforge.pmd.testframework.RuleTst
getResourceAsStream tries to find the XML file in weird locations if the ruleName includes the package, so we strip it here.
getCode() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getDescription() - Method in class net.sourceforge.pmd.testframework.PMDTestRunner
 
getDescription() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getExpectedLineNumbers() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getExpectedMessages() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getLanguageVersion() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getNumberInDocument() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getNumberOfProblemsExpected() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getProperties() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getReinitializeRule() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getRule() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
getRules() - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Gets all configured rules.
getSampleCode() - Method in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
getStatusCode() - Method in class net.sourceforge.pmd.cli.BaseCLITest
 

I

init() - Static method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Setups the XML parser with validation.
inRegressionTestMode() - Static method in class net.sourceforge.pmd.testframework.TestDescriptor
Checks whether we are testing for regression problems only.
isRegressionTest() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
isUseAuxClasspath() - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 

M

mvnWorkaround - Variable in class net.sourceforge.pmd.ant.AbstractAntTestHelper
 

N

net.sourceforge.pmd - package net.sourceforge.pmd
 
net.sourceforge.pmd.ant - package net.sourceforge.pmd.ant
 
net.sourceforge.pmd.cli - package net.sourceforge.pmd.cli
 
net.sourceforge.pmd.lang - package net.sourceforge.pmd.lang
 
net.sourceforge.pmd.testframework - package net.sourceforge.pmd.testframework
 

O

originalErr - Variable in class net.sourceforge.pmd.cli.BaseCLITest
 
originalOut - Variable in class net.sourceforge.pmd.cli.BaseCLITest
 

P

ParserOptionsTest - Class in net.sourceforge.pmd.lang
Unit tests for ParserOptions.
ParserOptionsTest() - Constructor for class net.sourceforge.pmd.lang.ParserOptionsTest
 
pathToTestScript - Variable in class net.sourceforge.pmd.ant.AbstractAntTestHelper
 
PMDTestRunner - Class in net.sourceforge.pmd.testframework
A test runner for rule tests.
PMDTestRunner(Class<? extends SimpleAggregatorTst>) - Constructor for class net.sourceforge.pmd.testframework.PMDTestRunner
Creates a new PMDTestRunner for the given test class.

R

RuleTst - Class in net.sourceforge.pmd.testframework
Advanced methods for test cases
RuleTst() - Constructor for class net.sourceforge.pmd.testframework.RuleTst
 
run(RunNotifier) - Method in class net.sourceforge.pmd.testframework.PMDTestRunner
 
runPMDWith(String[]) - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
runTest(String[], String) - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
runTest(String[], String, int) - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
runTest(TestDescriptor) - Method in class net.sourceforge.pmd.testframework.RuleTst
Run the rule on the given code, and check the expected number of violations.
runTestFromString(String, Rule, Report, LanguageVersion) - Method in class net.sourceforge.pmd.testframework.RuleTst
Run the rule on the given code and put the violations in the report.
runTestFromString(String, Rule, Report, LanguageVersion, boolean) - Method in class net.sourceforge.pmd.testframework.RuleTst
 
runTestFromString(TestDescriptor, Rule, Report) - Method in class net.sourceforge.pmd.testframework.RuleTst
 
runTests(Rule) - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Run a set of tests defined in an XML test-data file for a rule.
runTests(Rule, String) - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Run a set of tests defined in a XML test-data file.
runTests(TestDescriptor[]) - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Run a set of tests of a certain sourceType.

S

setExpectedLineNumbers(List<Integer>) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setExpectedMessages(List<String>) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setNumberInDocument(int) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setProperties(Properties) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setRegressionTest(boolean) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setReinitializeRule(boolean) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
setUp() - Method in class net.sourceforge.pmd.ant.AbstractAntTestHelper
 
setUp() - Static method in class net.sourceforge.pmd.cli.BaseCLITest
 
setup() - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
setUp() - Method in class net.sourceforge.pmd.testframework.SimpleAggregatorTst
Configure the rule tests to be executed.
setUseAuxClasspath(boolean) - Method in class net.sourceforge.pmd.testframework.TestDescriptor
 
SimpleAggregatorTst - Class in net.sourceforge.pmd.testframework
Standard methods for (simple) testcases.
SimpleAggregatorTst() - Constructor for class net.sourceforge.pmd.testframework.SimpleAggregatorTst
 
SOURCE_FOLDER - Static variable in class net.sourceforge.pmd.cli.BaseCLITest
 
sourceCode - Variable in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
StreamUtil - Class in net.sourceforge.pmd.testframework
Deprecated. Just use apache IOUtils

T

tearDown() - Method in class net.sourceforge.pmd.cli.BaseCLITest
 
TEST_OUPUT_DIRECTORY - Static variable in class net.sourceforge.pmd.cli.BaseCLITest
 
testAllPMDBuiltInRulesMeetConventions() - Method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Checks all rulesets of all languages on the classpath and verifies that all required attributes for all rules are specified.
TestDescriptor - Class in net.sourceforge.pmd.testframework
Stores the information required to run a complete test.
TestDescriptor() - Constructor for class net.sourceforge.pmd.testframework.TestDescriptor
 
TestDescriptor(String, String, int, Rule) - Constructor for class net.sourceforge.pmd.testframework.TestDescriptor
 
TestDescriptor(String, String, int, Rule, LanguageVersion) - Constructor for class net.sourceforge.pmd.testframework.TestDescriptor
 
testDtd() - Method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Verifies that all rulesets are valid XML according to the DTD.
testEqualsHashcode() - Method in class net.sourceforge.pmd.lang.ParserOptionsTest
Verify that the equals and hashCode methods work as expected.
testFindVersionsForLanguageNameAndVersion() - Method in class net.sourceforge.pmd.AbstractLanguageVersionTest
Checks that the expected LanguageVersion can be found via AbstractLanguageVersionTest.name and AbstractLanguageVersionTest.version.
testGetLanguageVersionForTerseName() - Method in class net.sourceforge.pmd.AbstractLanguageVersionTest
Checks that the expected LanguageVersion can be found by the combination of AbstractLanguageVersionTest.terseName and AbstractLanguageVersionTest.version.
testReadWriteRoundTrip() - Method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Reads and writes the rulesets to make sure, that no data is lost if the rulests are processed.
testSuppressMarker() - Method in class net.sourceforge.pmd.lang.ParserOptionsTest
SuppressMarker should be initially null and changeable.
testXmlSchema() - Method in class net.sourceforge.pmd.AbstractRuleSetFactoryTest
Verifies that all rulesets are valid XML according to the xsd schema.
tokenizer - Variable in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
tokenizeTest() - Method in class net.sourceforge.pmd.testframework.AbstractTokenizerTest
 
toString(InputStream) - Static method in class net.sourceforge.pmd.testframework.StreamUtil
Deprecated. use IOUtils.toString(InputStream) instead

V

verifyOptionsEqualsHashcode(ParserOptions, ParserOptions, ParserOptions, ParserOptions) - Static method in class net.sourceforge.pmd.lang.ParserOptionsTest
Verify equals and hashCode for 4 ParserOptions instances.

A B C E F G I M N O P R S T V

Copyright © 2002-2015 InfoEther. All Rights Reserved.