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, runTestFromStringpublic void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded in interface ReportListenerpublic void metricAdded(Metric metric)
metricAdded in interface ReportListenerpublic void testMetric0()
public void testMetric1()
public void testExclusionsInReportWithRuleViolationSuppressRegex()
throws Throwable
Throwablepublic void testExclusionsInReportWithRuleViolationSuppressXPath()
throws Throwable
Throwablepublic void testExclusionsInReportWithAnnotations()
throws Throwable
Throwablepublic void testExclusionsInReportWithAnnotationsFullName()
throws Throwable
Throwablepublic void testExclusionsInReportWithNOPMD()
throws Throwable
Throwablepublic void testExclusionsInReportWithNOPMDEcmascript()
throws Exception
Exceptionpublic void testSortedReport_File()
throws IOException
IOExceptionpublic void testSortedReport_Line()
throws IOException
IOExceptionpublic void testListener()
public void testSummary()
public void testTreeIterator()
public static String render(Renderer renderer, Report report) throws IOException
IOExceptionpublic static junit.framework.Test suite()
Copyright © 2002-2014 InfoEther. All Rights Reserved.