Package org.h2.test.utils
Class OutputCatcher
java.lang.Object
org.h2.test.utils.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
FieldsModifier and TypeFieldDescriptionstatic final StringThe HTML text will contain this string if something was written to System.err. -
Method Summary
-
Field Details
-
START_ERROR
The HTML text will contain this string if something was written to System.err.- See Also:
-
-
Method Details
-
stop
public void stop()Stop catching output. -
writeTo
Write the output to a HTML file.- Parameters:
title- the titlefileName- the file name- Throws:
IOException
-
start
Create a new output catcher and start it.- Returns:
- the output catcher
-