Class DirectConsoleOutput

  • All Implemented Interfaces:
    TestcycleConsoleOutputReceiver, org.apache.maven.surefire.report.ConsoleOutputReceiver

    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 sout, java.io.PrintStream serr)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void testSetCompleted​(org.apache.maven.surefire.report.ReportEntry report)  
      void testSetStarting​(org.apache.maven.surefire.report.ReportEntry reportEntry)  
      void writeTestOutput​(byte[] buf, int off, int len, boolean stdout)  
      • 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 sout,
                                   java.io.PrintStream serr)
    • Method Detail

      • writeTestOutput

        public void writeTestOutput​(byte[] buf,
                                    int off,
                                    int len,
                                    boolean stdout)
        Specified by:
        writeTestOutput in interface org.apache.maven.surefire.report.ConsoleOutputReceiver