com.googlecode.lightest.core
Class TestEnvironmentInfoSource

java.lang.Object
  extended by com.googlecode.lightest.core.TestEnvironmentInfoSource
All Implemented Interfaces:
IReporterInfoSource, groovy.lang.GroovyObject

public class TestEnvironmentInfoSource
extends Object
implements groovy.lang.GroovyObject, IReporterInfoSource

The info source class used by the DefaultReporter to populate environment information into the report.


Field Summary
static String TYPE_NAME
           
 
Constructor Summary
TestEnvironmentInfoSource()
           
 
Method Summary
 void configure(LightestTestResult result)
          Configures the info source according to the result being reported on.
 Map getData()
          Returns the data as a map of String's to String's.
 List getHeaders()
          Returns a list of headers for the table.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 String getTitle()
          Returns the title of the information.
 String getTypeName()
          Returns the type name of this info source.
 Object invokeMethod(String name, Object args)
           
 void setData(Map value)
           
 void setHeaders(List value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setTitle(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final String TYPE_NAME
Constructor Detail

TestEnvironmentInfoSource

public TestEnvironmentInfoSource()
Method Detail

getTitle

public String getTitle()
Description copied from interface: IReporterInfoSource
Returns the title of the information.

Specified by:
getTitle in interface IReporterInfoSource

setTitle

public void setTitle(String value)

getHeaders

public List getHeaders()
Description copied from interface: IReporterInfoSource
Returns a list of headers for the table. This list should have at least two values; any additional values may be ignored.

Specified by:
getHeaders in interface IReporterInfoSource

setHeaders

public void setHeaders(List value)

getData

public Map getData()
Description copied from interface: IReporterInfoSource
Returns the data as a map of String's to String's.

Specified by:
getData in interface IReporterInfoSource

setData

public void setData(Map value)

getTypeName

public String getTypeName()
Description copied from interface: IReporterInfoSource
Returns the type name of this info source. This should be renderable as an XML tag - no whitespace or special characters are allowed.

Specified by:
getTypeName in interface IReporterInfoSource

configure

public void configure(LightestTestResult result)
Description copied from interface: IReporterInfoSource
Configures the info source according to the result being reported on.

Specified by:
configure in interface IReporterInfoSource

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2009. All Rights Reserved.