Package org.apache.batik.test
Class SimpleTestReportProcessor
- java.lang.Object
-
- org.apache.batik.test.SimpleTestReportProcessor
-
- All Implemented Interfaces:
TestReportProcessor
public class SimpleTestReportProcessor extends java.lang.Object implements TestReportProcessor
A simple implementation of theTestReportProcessor
interface that prints out theTestReport
to the standard output.- Version:
- $Id: SimpleTestReportProcessor.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MESSAGES_TEST_SUITE_ERROR_CODE
static java.lang.String
MESSAGES_TEST_SUITE_STATUS
static java.lang.String
MESSAGES_TEST_SUITE_STATUS_TEST_FAILED
static java.lang.String
MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
Message keysprivate java.io.PrintWriter
printWriter
Default output writer-
Fields inherited from interface org.apache.batik.test.TestReportProcessor
INTERNAL_ERROR
-
-
Constructor Summary
Constructors Constructor Description SimpleTestReportProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
printValue(java.lang.Object value, java.lang.String prefix, java.io.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, java.lang.String prefix, java.io.PrintWriter out)
Prints out the input report, prefixing all output with the input stringvoid
setPrintWriter(java.io.PrintWriter printWriter)
Sets thePrintWriter
this processor should use
-
-
-
Field Detail
-
MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
public static final java.lang.String MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
Message keys- See Also:
- Constant Field Values
-
MESSAGES_TEST_SUITE_STATUS_TEST_FAILED
public static final java.lang.String MESSAGES_TEST_SUITE_STATUS_TEST_FAILED
- See Also:
- Constant Field Values
-
MESSAGES_TEST_SUITE_STATUS
public static final java.lang.String MESSAGES_TEST_SUITE_STATUS
- See Also:
- Constant Field Values
-
MESSAGES_TEST_SUITE_ERROR_CODE
public static final java.lang.String MESSAGES_TEST_SUITE_ERROR_CODE
- See Also:
- Constant Field Values
-
printWriter
private java.io.PrintWriter printWriter
Default output writer
-
-
Method Detail
-
setPrintWriter
public void setPrintWriter(java.io.PrintWriter printWriter)
Sets thePrintWriter
this processor should use
-
processReport
public void processReport(TestReport report) throws TestException
Recursively prints out the entries of the input report and its children reports, if any.- Specified by:
processReport
in interfaceTestReportProcessor
- Throws:
TestException
-
processReport
public void processReport(TestReport report, java.lang.String prefix, java.io.PrintWriter out)
Prints out the input report, prefixing all output with the input string
-
printValue
protected void printValue(java.lang.Object value, java.lang.String prefix, java.io.PrintWriter out)
Prints out the input value depending on its type.
-
-