|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.TaskResult
public class TaskResult
The default implementation of ITaskResult.
| Field Summary |
|---|
| Fields inherited from interface com.googlecode.lightest.core.ITaskResult |
|---|
HUMAN_READABLE_STATUS, STATUS_DOOMED, STATUS_FAILED, STATUS_FLAGGED, STATUS_OK |
| Constructor Summary | |
|---|---|
TaskResult(ITask task)
Constructs a default task result. |
|
TaskResult(ITask task,
ITaskResult parent)
|
|
| Method Summary | |
|---|---|
void |
addLink(String link)
Adds a URL referencing a resource that provides additional information related to this result. |
void |
addLink(TaskResultLink link)
Adds a URL referencing a resource that provides additional information related to this result, to a collection maintained by the result object. |
void |
appendChild(ITaskResult childResult)
Adds to the list of child task results. |
List |
children()
Returns a list of child task results. |
void |
doom()
Sets the status of this result to STATUS_DOOMED, which indicates that the failure of the task means the remainder of the test cannot continue successfully, and should be aborted. |
void |
fail()
Sets the status of this result to STATUS_FAILED, but only if it is not already STATUS_DOOMED. |
void |
flag()
Sets the status of this result to STATUS_FLAGGED, but only if it is not already STATUS_FAILED. |
String |
getDetailedMessage()
Returns a detailed message about the task execution, for example, the data generated by performing the task, if any. |
long |
getEndTime()
Returns the time the task was finished. |
List |
getLinks()
Returns the list of URL's associated with this result. |
String |
getMessage()
Returns a message describing the result. |
groovy.lang.MetaClass |
getMetaClass()
|
ITaskResult |
getParent()
Returns the parent task result. |
Object |
getProperty(String name)
|
long |
getStartTime()
Returns the time the task was started. |
int |
getStatus()
Returns the status of the result. |
ITask |
getTask()
Returns the task whose performance returned this result. |
Object |
invokeMethod(String name,
Object args)
|
void |
setDetailedMessage(String value)
Sets the return value of getDetailedMessage(). |
void |
setEndTime(long value)
Sets the time the task was finished. |
void |
setMessage(String value)
Sets the return value of getMessage(). |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setParent(ITaskResult value)
Sets the parent task result. |
void |
setProperty(String name,
Object value)
|
void |
setStartTime(long value)
Sets the time the task was started. |
protected void |
setStatus(Object newStatus)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskResult(ITask task)
public TaskResult(ITask task,
ITaskResult parent)
| Method Detail |
|---|
public ITaskResult getParent()
ITaskResult
getParent in interface ITaskResultpublic void setParent(ITaskResult value)
ITaskResult
setParent in interface ITaskResultpublic String getMessage()
ITaskResult
getMessage in interface ITaskResultpublic void setMessage(String value)
ITaskResult
setMessage in interface ITaskResultpublic String getDetailedMessage()
ITaskResult
getDetailedMessage in interface ITaskResultpublic void setDetailedMessage(String value)
ITaskResult
setDetailedMessage in interface ITaskResultpublic long getStartTime()
ITaskResult
getStartTime in interface ITaskResultpublic void setStartTime(long value)
ITaskResult
setStartTime in interface ITaskResultpublic long getEndTime()
ITaskResult
getEndTime in interface ITaskResultpublic void setEndTime(long value)
ITaskResult
setEndTime in interface ITaskResultpublic List getLinks()
getLinks in interface ITaskResultpublic int getStatus()
getStatus in interface ITaskResultpublic ITask getTask()
getTask in interface ITaskResultpublic void addLink(String link)
addLink in interface ITaskResultlink - the string representation of the URL to addpublic void addLink(TaskResultLink link)
ITaskResult
addLink in interface ITaskResultlink - the link object to addpublic void appendChild(ITaskResult childResult)
appendChild in interface ITaskResultpublic List children()
children in interface ITaskResultpublic void flag()
flag in interface ITaskResultpublic void fail()
fail in interface ITaskResultpublic void doom()
doom in interface ITaskResultprotected void setStatus(Object newStatus)
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 | |||||||||