public class SimpleTestReportProcessor extends Object implements TestReportProcessor
TestReportProcessor
interface
that prints out the TestReport
to the standard output.Modifier and Type | Field and Description |
---|---|
static String |
MESSAGES_TEST_SUITE_ERROR_CODE |
static String |
MESSAGES_TEST_SUITE_STATUS |
static String |
MESSAGES_TEST_SUITE_STATUS_TEST_FAILED |
static String |
MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
Message keys
|
INTERNAL_ERROR
Constructor and Description |
---|
SimpleTestReportProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
printValue(Object value,
String prefix,
PrintWriter out)
Prints out the input value depending on its
type.
|
void |
processReport(TestReport report)
Recursively prints out the entries of the input
report and its children reports, if any.
|
void |
processReport(TestReport report,
String prefix,
PrintWriter out)
Prints out the input report, prefixing all output
with the input string
|
void |
setPrintWriter(PrintWriter printWriter)
Sets the
PrintWriter this processor should use |
public static final String MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
public static final String MESSAGES_TEST_SUITE_STATUS_TEST_FAILED
public static final String MESSAGES_TEST_SUITE_STATUS
public static final String MESSAGES_TEST_SUITE_ERROR_CODE
public void setPrintWriter(PrintWriter printWriter)
PrintWriter
this processor should usepublic void processReport(TestReport report) throws TestException
processReport
in interface TestReportProcessor
TestException
public void processReport(TestReport report, String prefix, PrintWriter out)
protected void printValue(Object value, String prefix, PrintWriter out)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.