|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.TestEnvironment
public class TestEnvironment
A convenient base class for defining custom test environments. Subclasses should only add simple property value definitions - i.e. Date, String, etc.
| Constructor Summary | |
|---|---|
TestEnvironment()
|
|
TestEnvironment(String id)
|
|
| Method Summary | |
|---|---|
String |
getId()
Returns a unique identifier for the environment |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
void |
initializeProperties(groovy.util.Node config)
Sets properties of the environment based on a Node configuration, whose child Nodes contain name-value pairs, retrievable by name() and value(), respectively. |
Object |
invokeMethod(String name,
Object args)
|
void |
setId(String value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
Map |
settings()
Returns a map of setting names to their values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestEnvironment()
public TestEnvironment(String id)
| Method Detail |
|---|
public String getId()
ITestEnvironment
getId in interface ITestEnvironmentpublic void setId(String value)
setId in interface ITestEnvironmentpublic Map settings()
ITestEnvironment
settings in interface ITestEnvironmentpublic void initializeProperties(groovy.util.Node config)
config - 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 | |||||||||