Class DirectConsoleOutput

  • All Implemented Interfaces:
    TestcycleConsoleOutputReceiver, org.apache.maven.surefire.api.report.TestOutputReceiver<org.apache.maven.surefire.api.report.TestOutputReportEntry>, org.apache.maven.surefire.extensions.ConsoleOutputReportEventListener

    public class DirectConsoleOutput
    extends java.lang.Object
    implements TestcycleConsoleOutputReceiver
    Outputs test system out/system err directly to the console
    Just a step on the road to getting the separation of reporting concerns operating properly.
    Author:
    Kristian Rosenvold
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectConsoleOutput​(java.io.PrintStream out, java.io.PrintStream err)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void testSetCompleted​(org.apache.maven.surefire.api.report.TestSetReportEntry report)  
      void testSetStarting​(org.apache.maven.surefire.api.report.TestSetReportEntry reportEntry)  
      void writeTestOutput​(org.apache.maven.surefire.api.report.TestOutputReportEntry reportEntry)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectConsoleOutput

        public DirectConsoleOutput​(java.io.PrintStream out,
                                   java.io.PrintStream err)
    • Method Detail

      • writeTestOutput

        public void writeTestOutput​(org.apache.maven.surefire.api.report.TestOutputReportEntry reportEntry)
        Specified by:
        writeTestOutput in interface org.apache.maven.surefire.extensions.ConsoleOutputReportEventListener
        Specified by:
        writeTestOutput in interface org.apache.maven.surefire.api.report.TestOutputReceiver<org.apache.maven.surefire.api.report.TestOutputReportEntry>
      • testSetStarting

        public void testSetStarting​(org.apache.maven.surefire.api.report.TestSetReportEntry reportEntry)
        Specified by:
        testSetStarting in interface org.apache.maven.surefire.extensions.ConsoleOutputReportEventListener
        Specified by:
        testSetStarting in interface TestcycleConsoleOutputReceiver
      • testSetCompleted

        public void testSetCompleted​(org.apache.maven.surefire.api.report.TestSetReportEntry report)
        Specified by:
        testSetCompleted in interface org.apache.maven.surefire.extensions.ConsoleOutputReportEventListener
        Specified by:
        testSetCompleted in interface TestcycleConsoleOutputReceiver
      • close

        public void close()
        Specified by:
        close in interface org.apache.maven.surefire.extensions.ConsoleOutputReportEventListener
        Specified by:
        close in interface TestcycleConsoleOutputReceiver