| java.lang.Object org.netbeans.jemmy.TestOut
TestOut | public class TestOut (Code) | | Test output.
author: Alexandre Iline (alexandre.iline@sun.com) |
Constructor Summary | |
public | TestOut(InputStream in, PrintStream out, PrintStream err) Constructor. | public | TestOut(InputStream in, PrintStream out, PrintStream err, PrintStream golden) Constructor. | public | TestOut(InputStream in, PrintWriter out, PrintWriter err) Constructor. | public | TestOut(InputStream in, PrintWriter out, PrintWriter err, PrintWriter golden) Constructor. | public | TestOut() Creates unstance using System.in, System.out and System.err streams. |
TestOut | public TestOut()(Code) | | Creates unstance using System.in, System.out and System.err streams.
|
createErrorOutput | public TestOut createErrorOutput()(Code) | | Creates an output which prints only error messages.
a TestOut instance which has only error stream. |
flush | public void flush()(Code) | | Flushes all output threads.
|
getAutoFlushMode | public boolean getAutoFlushMode()(Code) | | Says if flush is invoked after each output.
Value of the auto flush mode. See Also: TestOut.setAutoFlushMode |
getGolden | public PrintWriter getGolden()(Code) | | Returns golden output writer.
a golden output stream |
getNullOutput | public static TestOut getNullOutput()(Code) | | Creates output which does not print any message anywhere.
a TestOut object which does not print any message anywhere. |
getOutput | public PrintWriter getOutput()(Code) | | Returns output writer.
an output stream |
print | public void print(String line)(Code) | | Prints a line into output.
Parameters: line - a string to print into output stream. |
printErrLine | public void printErrLine(String line)(Code) | | Prints a line into error output.
Parameters: line - a string to print into error output stream. |
printError | public void printError(String text)(Code) | | Prints a error line.
Parameters: text - a error text. |
printGolden | public void printGolden(String line)(Code) | | Prints a line into golden output.
Parameters: line - a string to print into golden output stream. |
printLine | public void printLine(String line)(Code) | | Prints a line and then terminate the line by writing the line separator string.
Parameters: line - a string to print into output stream. |
printLine | public void printLine(boolean toOut, String line)(Code) | | Prints a line into either output or errput.
Parameters: toOut - If true prints a line into output. Parameters: line - a string to print. |
printStackTrace | public void printStackTrace(Throwable e)(Code) | | Prints an exception stack trace into error stream.
Parameters: e - exception |
printTrace | public void printTrace(String text)(Code) | | Prints a trace line.
Parameters: text - a trace text. |
setAutoFlushMode | public boolean setAutoFlushMode(boolean autoFlushMode)(Code) | | Specifies either flush is invoked after each output.
Parameters: autoFlushMode - If true flush is invoking after each output. Old value of the auto flush mode. See Also: TestOut.getAutoFlushMode |
|
|