Class SimpleTestReportProcessor

java.lang.Object
org.apache.batik.test.SimpleTestReportProcessor
All Implemented Interfaces:
TestReportProcessor

public class SimpleTestReportProcessor extends Object implements TestReportProcessor
A simple implementation of the TestReportProcessor interface that prints out the TestReport to the standard output.
Version:
$Id: SimpleTestReportProcessor.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • MESSAGES_TEST_SUITE_STATUS_TEST_PASSED

      public static final String MESSAGES_TEST_SUITE_STATUS_TEST_PASSED
      Message keys
      See Also:
    • MESSAGES_TEST_SUITE_STATUS_TEST_FAILED

      public static final String MESSAGES_TEST_SUITE_STATUS_TEST_FAILED
      See Also:
    • MESSAGES_TEST_SUITE_STATUS

      public static final String MESSAGES_TEST_SUITE_STATUS
      See Also:
    • MESSAGES_TEST_SUITE_ERROR_CODE

      public static final String MESSAGES_TEST_SUITE_ERROR_CODE
      See Also:
    • printWriter

      private PrintWriter printWriter
      Default output writer
  • Constructor Details

    • SimpleTestReportProcessor

      public SimpleTestReportProcessor()
  • Method Details

    • setPrintWriter

      public void setPrintWriter(PrintWriter printWriter)
      Sets the PrintWriter 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 interface TestReportProcessor
      Throws:
      TestException
    • processReport

      public void processReport(TestReport report, String prefix, PrintWriter out)
      Prints out the input report, prefixing all output with the input string
    • printValue

      protected void printValue(Object value, String prefix, PrintWriter out)
      Prints out the input value depending on its type.