Class EventChannelEncoder

java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.ForkedProcessEventType>
org.apache.maven.surefire.booter.stream.EventEncoder
org.apache.maven.surefire.booter.spi.EventChannelEncoder
All Implemented Interfaces:
org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder

public class EventChannelEncoder extends EventEncoder implements org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
magic number : opcode : run mode [: opcode specific data]*
Since:
3.0.0-M4
Author:
Tibor Digana (tibor17)
  • Constructor Details

    • EventChannelEncoder

      public EventChannelEncoder(@Nonnull org.apache.maven.surefire.api.util.internal.WritableBufferedByteChannel out)
      The encoder for events.
      Parameters:
      out - the channel available for writing the events
  • Method Details

    • checkError

      public boolean checkError()
      Specified by:
      checkError in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • onJvmExit

      public void onJvmExit()
      Specified by:
      onJvmExit in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testSetStarting

      public void testSetStarting(org.apache.maven.surefire.api.report.TestSetReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testSetStarting in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testSetCompleted

      public void testSetCompleted(org.apache.maven.surefire.api.report.TestSetReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testSetCompleted in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testStarting

      public void testStarting(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testStarting in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testSucceeded

      public void testSucceeded(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testSucceeded in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testFailed

      public void testFailed(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testFailed in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testSkipped

      public void testSkipped(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testSkipped in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testError

      public void testError(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testError in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testAssumptionFailure

      public void testAssumptionFailure(org.apache.maven.surefire.api.report.ReportEntry reportEntry, boolean trimStackTraces)
      Specified by:
      testAssumptionFailure in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • testOutput

      public void testOutput(org.apache.maven.surefire.api.report.TestOutputReportEntry reportEntry)
      Specified by:
      testOutput in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleInfoLog

      public void consoleInfoLog(String message)
      Specified by:
      consoleInfoLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleErrorLog

      public void consoleErrorLog(String message)
      Specified by:
      consoleErrorLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleErrorLog

      public void consoleErrorLog(Throwable t)
      Specified by:
      consoleErrorLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleErrorLog

      public void consoleErrorLog(String message, Throwable t)
      Specified by:
      consoleErrorLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleErrorLog

      public void consoleErrorLog(org.apache.maven.surefire.api.report.StackTraceWriter stackTraceWriter, boolean trimStackTraces)
      Specified by:
      consoleErrorLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleDebugLog

      public void consoleDebugLog(String message)
      Specified by:
      consoleDebugLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • consoleWarningLog

      public void consoleWarningLog(String message)
      Specified by:
      consoleWarningLog in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • bye

      public void bye()
      Specified by:
      bye in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • stopOnNextTest

      public void stopOnNextTest()
      Specified by:
      stopOnNextTest in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • acquireNextTest

      public void acquireNextTest()
      Specified by:
      acquireNextTest in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • sendExitError

      public void sendExitError(org.apache.maven.surefire.api.report.StackTraceWriter stackTraceWriter, boolean trimStackTraces)
      Specified by:
      sendExitError in interface org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    • write

      protected void write(ByteBuffer frame, boolean sync)
      Overrides:
      write in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.ForkedProcessEventType>