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 theTestReportProcessorinterface that prints out theTestReportto 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.StringMESSAGES_TEST_SUITE_ERROR_CODEstatic java.lang.StringMESSAGES_TEST_SUITE_STATUSstatic java.lang.StringMESSAGES_TEST_SUITE_STATUS_TEST_FAILEDstatic java.lang.StringMESSAGES_TEST_SUITE_STATUS_TEST_PASSEDMessage keysprivate java.io.PrintWriterprintWriterDefault 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 voidprintValue(java.lang.Object value, java.lang.String prefix, java.io.PrintWriter out)Prints out the input value depending on its type.voidprocessReport(TestReport report)Recursively prints out the entries of the input report and its children reports, if any.voidprocessReport(TestReport report, java.lang.String prefix, java.io.PrintWriter out)Prints out the input report, prefixing all output with the input stringvoidsetPrintWriter(java.io.PrintWriter printWriter)Sets thePrintWriterthis 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 thePrintWriterthis 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:
processReportin 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.
-
-