public class ReportTest extends RuleTst implements ReportListener
Modifier and Type | Class and Description |
---|---|
static class |
ReportTest.FooRule |
DEFAULT_LANGUAGE, DEFAULT_LANGUAGE_VERSION
Constructor and Description |
---|
ReportTest() |
Modifier and Type | Method and Description |
---|---|
static JavaNode |
getNode(int line,
int column,
String scopeName) |
static JavaNode |
getNode(int line,
int column,
String scopeName,
boolean nextLine) |
void |
metricAdded(Metric metric) |
static String |
render(Renderer renderer,
Report report) |
void |
ruleViolationAdded(RuleViolation ruleViolation) |
static junit.framework.Test |
suite() |
void |
testBasic() |
void |
testExclusionsInReportWithAnnotations() |
void |
testExclusionsInReportWithAnnotationsFullName() |
void |
testExclusionsInReportWithNOPMD() |
void |
testExclusionsInReportWithNOPMDEcmascript() |
void |
testExclusionsInReportWithRuleViolationSuppressRegex() |
void |
testExclusionsInReportWithRuleViolationSuppressXPath() |
void |
testListener() |
void |
testMetric0() |
void |
testMetric1() |
void |
testSortedReport_File() |
void |
testSortedReport_Line() |
void |
testSummary() |
void |
testTreeIterator() |
extractTestsFromXml, extractTestsFromXml, extractTestsFromXml, findRule, getCleanRuleName, runTest, runTestFromString, runTestFromString
public void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded
in interface ReportListener
public void metricAdded(Metric metric)
metricAdded
in interface ReportListener
public void testMetric0()
public void testMetric1()
public void testExclusionsInReportWithRuleViolationSuppressRegex() throws Throwable
Throwable
public void testExclusionsInReportWithRuleViolationSuppressXPath() throws Throwable
Throwable
public void testExclusionsInReportWithAnnotations() throws Throwable
Throwable
public void testExclusionsInReportWithAnnotationsFullName() throws Throwable
Throwable
public void testExclusionsInReportWithNOPMD() throws Throwable
Throwable
public void testExclusionsInReportWithNOPMDEcmascript() throws Exception
Exception
public void testSortedReport_File() throws IOException
IOException
public void testSortedReport_Line() throws IOException
IOException
public void testListener()
public void testSummary()
public void testTreeIterator()
public static String render(Renderer renderer, Report report) throws IOException
IOException
public static junit.framework.Test suite()
Copyright © 2002–2014 InfoEther. All rights reserved.