|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.LightestReporter
com.googlecode.lightest.core.ReporterInvoker
public class ReporterInvoker
Applies the composite pattern to a group of reporters.
| Field Summary |
|---|
| Fields inherited from class com.googlecode.lightest.core.LightestReporter |
|---|
DEFAULT_COOLDOWN_FACTOR |
| Constructor Summary | |
|---|---|
ReporterInvoker()
|
|
ReporterInvoker(SystemWrapper system)
|
|
| Method Summary | |
|---|---|
void |
generateBaseReport(TestRegistry testRegistry,
String outputDir)
No-op. |
void |
generateReport(List xmlSuites,
List suites,
String outputDirectory)
|
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
TestRegistry |
getRegistry()
Return the registry currently set on the object. |
Object |
invokeMethod(String name,
Object args)
|
void |
registerReporter(ILightestReporter reporter)
|
protected void |
runUpdateAndScheduleCooldown(ILightestReporter reporter,
ISuite suite,
TestRegistry testRegistry,
String outputDir)
Runs the reporter's update method, and updates the scheduled cooldown mapping to reflect the next time this method is allowed to run. |
protected void |
runUpdateAndScheduleCooldown(ILightestReporter reporter,
LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
|
protected void |
scheduleUpdate(ILightestReporter reporter,
ISuite suite,
TestRegistry testRegistry,
String outputDir)
|
protected void |
scheduleUpdate(ILightestReporter reporter,
LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
|
void |
setConfigText(String configText)
Sets the textual configuration used to configure this run. |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
void |
setRegistry(TestRegistry value)
Set the registry on the object. |
void |
updateReport(ISuite suite,
TestRegistry testRegistry,
String outputDir)
Scheduled ILightestReporter's are treated differently here. |
void |
updateReport(LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
Scheduled IScheduledReporter's are treated differently here. |
| Methods inherited from class com.googlecode.lightest.core.LightestReporter |
|---|
getConfigText, getCooldownFactor, getScheduled, isScheduled, onUpdateDeferred, setCooldownFactor, setScheduled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReporterInvoker()
public ReporterInvoker(SystemWrapper system)
| Method Detail |
|---|
public TestRegistry getRegistry()
ITestRegistryAcceptor
getRegistry in interface ITestRegistryAcceptorpublic void setRegistry(TestRegistry value)
ITestRegistryAcceptor
setRegistry in interface ITestRegistryAcceptorpublic void registerReporter(ILightestReporter reporter)
reporter - may additionally implement IReporter
protected void scheduleUpdate(ILightestReporter reporter,
ISuite suite,
TestRegistry testRegistry,
String outputDir)
protected void scheduleUpdate(ILightestReporter reporter,
LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
protected void runUpdateAndScheduleCooldown(ILightestReporter reporter,
ISuite suite,
TestRegistry testRegistry,
String outputDir)
reporter - suite - result - testRegistry - outputDir -
protected void runUpdateAndScheduleCooldown(ILightestReporter reporter,
LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
public void setConfigText(String configText)
setConfigText in interface ILightestReportersetConfigText in class LightestReporterconfigText - the textual configuration, or null
public void generateBaseReport(TestRegistry testRegistry,
String outputDir)
generateBaseReport in interface ILightestReportergenerateBaseReport in class LightestReportertestRegistry - the registry contains all known information about
pending tests.
public void updateReport(ISuite suite,
TestRegistry testRegistry,
String outputDir)
updateReport in interface ILightestReporterupdateReport in class LightestReportersuite - the suite that is about to runtestRegistry - the registry contains all known information about
pending and completed tests
public void updateReport(LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
updateReport in interface ILightestReporterupdateReport in class LightestReporterresult - the result for which to update the report.testRegistry - the registry contains all known information about
pending and completed tests
public void generateReport(List xmlSuites,
List suites,
String outputDirectory)
generateReport in interface IReporterpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class LightestReporterpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class LightestReporter
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class LightestReporterpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class LightestReporter
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LightestReporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||