|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.TestResult.Section
public class TestResult.Section
This "section" is the logical combination of a single action during test execution. It is designed to hold multiple (or none) buffers of output from test execution, such as stdout and stderr. In addition, it has a "comment" field for tracking the test run itself (progress). This output is identified by the MSG_SECTION_NAME identifier.
Method Summary | |
---|---|
java.io.PrintWriter |
createOutput(java.lang.String name)
Add a new output buffer to the section; get PrintWriter access to it. |
void |
deleteOutputData(java.lang.String name)
Removes any data added to the named output up to this point, resetting it to an empty state. |
java.io.PrintWriter |
getMessageWriter()
Get the appropriate to writer to access the default message field. |
java.lang.String |
getOutput(java.lang.String name)
Get the content that was written to a specified output stream. |
int |
getOutputCount()
Find out how many output buffers this section has inside it. |
java.lang.String[] |
getOutputNames()
Find out the symbolic names of all the streams in this section. |
Status |
getStatus()
Find out what the result of the execution of this section was. |
java.lang.String |
getTitle()
Get the title of this section, specified when the section was created. |
boolean |
isMutable()
Query if the section is still writable or not. |
void |
setStatus(Status result)
Set the result of this section. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isMutable()
public Status getStatus()
setStatus(com.sun.javatest.Status)
public void setStatus(Status result)
result
- The status to set as the result of this section of the testgetStatus()
public java.lang.String getTitle()
public java.io.PrintWriter getMessageWriter()
public int getOutputCount()
public java.io.PrintWriter createOutput(java.lang.String name)
name
- The symbolic name that will identify this new stream.
public java.lang.String getOutput(java.lang.String name)
name
- the name of the stream in question
public java.lang.String[] getOutputNames()
getOutputCount()
public void deleteOutputData(java.lang.String name)
name
- The output name to erase the content of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |