|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.LightestContext
public class LightestContext
The context available to tasks any test thread. This object is typically managed by the TaskDispatcher, which is capable of associating the environment and testcase with it.
| Field Summary | |
|---|---|
protected ITestEnvironment |
env
|
protected IPreferences |
prefs
|
protected LightestTestCase |
testcase
|
| Constructor Summary | |
|---|---|
LightestContext()
|
|
| Method Summary | |
|---|---|
ITestEnvironment |
getEnv()
The test environment is accessible from the context, but it should not be settable or modifiable. |
groovy.lang.MetaClass |
getMetaClass()
|
String |
getOutputDir()
|
IPreferences |
getPrefs()
The test run preferences are accessible from the context, but should not be settable or modifiable. |
Object |
getProperty(String name)
|
ITaskProvider |
getTaskProvider()
Returns the current task provider. |
void |
inheritContextFromParent(LightestContext parentContext)
Sets the preferences, environment, and testcase from the specified parent context. |
Object |
invokeMethod(String name,
Object args)
|
protected ITaskProvider |
popTaskProvider()
|
Object |
push(Object name,
Object value)
Push a variable value onto the context. |
protected void |
pushTaskProvider(ITaskProvider taskProvider)
|
void |
reset()
Removes all local context values from the context. |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setOutputDir(String value)
|
void |
setProperty(String name,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IPreferences prefs
protected ITestEnvironment env
protected LightestTestCase testcase
| Constructor Detail |
|---|
public LightestContext()
| Method Detail |
|---|
public String getOutputDir()
public void setOutputDir(String value)
public void inheritContextFromParent(LightestContext parentContext)
parentContext - the context to inherit values frompublic IPreferences getPrefs()
public ITestEnvironment getEnv()
public ITaskProvider getTaskProvider()
protected void pushTaskProvider(ITaskProvider taskProvider)
protected ITaskProvider popTaskProvider()
public Object push(Object name,
Object value)
name - the name of the context variablevalue - the new value of the context variablepublic void reset()
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||