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.

Methods
static OutputCatcher start()
Create a new output catcher and start it.
static OutputCatcher start()
Create a new output catcher and start it.
Returns:
the output catcher
void stop()
Stop catching output.
void stop()
Stop catching output.
void writeTo(String title, String fileName)
Write the output to a HTML file.
void writeTo(String title, String fileName) throws IOException
Write the output to a HTML file.
Parameters:
title - the title
fileName - the file name

Fields
static String START_ERROR = ""

START_ERROR = ""

The HTML text will contain this string if something was written to System.err.