|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.test.utils.OutputCatcher
public class OutputCatcher
A tool to capture the output of System.out and System.err. The regular output still occurs, but it is additionally available as a String.
Field Summary | |
---|---|
static java.lang.String |
START_ERROR
The HTML text will contain this string if something was written to System.err. |
Method Summary | |
---|---|
static OutputCatcher |
start()
Create a new output catcher and start it. |
void |
stop()
Stop catching output. |
void |
writeTo(java.lang.String title,
java.lang.String fileName)
Write the output to a HTML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String START_ERROR
Method Detail |
---|
public void stop()
public void writeTo(java.lang.String title, java.lang.String fileName) throws java.io.IOException
title
- the titlefileName
- the file name
java.io.IOException
public static OutputCatcher start()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |