com.googlecode.lightest.core
Class LightestTestResult

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

public class LightestTestResult
extends Object
implements groovy.lang.GroovyObject

Wraps a TestNG ITestResult, while linking it to additional Lightest-related fields, such as the list of related ITaskResult's and the ITestEnvironment in which the test was run.


Constructor Summary
LightestTestResult(ITestResult result, int id)
           
 
Method Summary
 ITestEnvironment getEnv()
           
 int getId()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 List getTaskResults()
           
 Object invokeMethod(String name, Object args)
           
 void setEnv(ITestEnvironment value)
           
 void setId(int value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setTaskResults(List value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightestTestResult

public LightestTestResult(ITestResult result,
                          int id)
Method Detail

getTaskResults

public List getTaskResults()

setTaskResults

public void setTaskResults(List value)

getEnv

public ITestEnvironment getEnv()

setEnv

public void setEnv(ITestEnvironment value)

getId

public int getId()

setId

public void setId(int value)

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.