|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITask
Represents a domain-specific task to be performed in a test. ITask's are typically owned by IDomainSpecificApi's.
| Method Summary | |
|---|---|
void |
configure(TaskNode config,
ITaskResult parentResult)
Configures the task |
String |
getDescription()
Returns a user supplied description of the task instance, its purpose, etc. |
String |
getName()
Returns the name of the task. |
Map |
getParams()
Returns a new Map of names to values of the paremeters to the task. |
String |
getShortName()
Returns the abbreviated name of the task. |
Object |
getValue()
Returns the value set as the node value in the configuration. |
ITaskResult |
perform()
Performs the task in an environment, and returns the result. |
void |
setDispatcher(ITaskDispatcher dispatcher)
Sets the dispatcher to be used to perform the task. |
| Methods inherited from interface com.googlecode.lightest.core.ITaskProvider |
|---|
getBuilder |
| Method Detail |
|---|
void configure(TaskNode config,
ITaskResult parentResult)
config - the configuration for this task. The Node tree may
also contain configuration information for any
parent and child tasks. If it does, this task
object may inspect, but should not mutate, any
Nodes it does not directly relate to.parentResult - the result of performing the parent task. May be
null if this task has no parent.void setDispatcher(ITaskDispatcher dispatcher)
dispatcher - String getName()
String getShortName()
String getDescription()
Map getParams()
Object getValue()
ITaskResult perform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||