public class TestResult.Section
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 questionpublic java.lang.String[] getOutputNames()
getOutputCount()
public void deleteOutputData(java.lang.String name)
name
- The output name to erase the content of.Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.