|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to provide a general context in which tests are run. Includes ComponentReferences, current gui hierarchy, properties, and a working directory.
Method Summary | |
ComponentReference |
addComponent(Component comp)
Add a new component to the existing collection. |
void |
addComponentReference(ComponentReference ref)
Add a new component reference to the existing collection. |
ComponentReference |
getComponentReference(Component comp)
Return the existing reference for the given component, or null if none exists. |
ComponentReference |
getComponentReference(String refid)
Return the ComponentReference matching the given id, or null if none exists. |
Collection |
getComponentReferences()
Returns a collection of all the existing references. |
String |
getContext(Step step)
Provide a human-readable string that describes the given step's context. |
ClassLoader |
getContextClassLoader()
Return the class loader for use in this context. |
File |
getDirectory()
Provide a working directory context for relative pathnames. |
Hierarchy |
getHierarchy()
Get the component corresponding to the given reference. |
String |
getProperty(String name)
Provide retrieval of values from temporary storage. |
String |
getUniqueID(ComponentReference ref)
Derive a unique identifier for the given reference. |
void |
setProperty(String name,
String value)
Provide temporary storage of String values. |
Method Detail |
public ComponentReference getComponentReference(Component comp)
public ComponentReference addComponent(Component comp)
public void addComponentReference(ComponentReference ref)
public String getUniqueID(ComponentReference ref)
public Collection getComponentReferences()
public ComponentReference getComponentReference(String refid)
public Hierarchy getHierarchy()
public ClassLoader getContextClassLoader()
public File getDirectory()
public void setProperty(String name, String value)
public String getProperty(String name)
public String getContext(Step step)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |