com.googlecode.lightest.core
Class TestNGContext

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

public class TestNGContext
extends Object
implements groovy.lang.GroovyObject

The context of a TestNG test run, from the perspective of a TestListener.


Constructor Summary
TestNGContext(ITestContext context)
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 String getSuiteName()
           
 String getTestName()
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setSuiteName(String value)
           
 void setTestName(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGContext

public TestNGContext(ITestContext context)
Method Detail

getSuiteName

public String getSuiteName()

setSuiteName

public void setSuiteName(String value)

getTestName

public String getTestName()

setTestName

public void setTestName(String 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.