java.lang.Object
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandReader
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
All Implemented Interfaces:
Closeable, AutoCloseable, NotifiableTestStream, CommandReader
Direct Known Subclasses:
TestLessInputStream, TestProvidingInputStream

public abstract class DefaultCommandReader extends AbstractCommandReader
Reader stream sends commands to forked jvm std-input-stream.
Since:
2.19
Author:
Tibor Digana (tibor17)
See Also:
  • Constructor Details

    • DefaultCommandReader

      public DefaultCommandReader()
  • Method Details

    • canContinue

      protected boolean canContinue()
      Returns:
      true if not closed
    • beforeNextCommand

      protected void beforeNextCommand() throws IOException
      Possibly waiting for next command (see nextCommand()) unless the stream is atomically closed (see CommandReader.isClosed() returns true) before this method has returned.
      Throws:
      IOException - stream error while waiting for notification regarding next test required by forked jvm
    • nextCommand

      protected abstract Command nextCommand()
    • readNextCommand

      public Command readNextCommand() throws IOException
      Used by single thread in StreamFeeder class.
      Returns:
      Throws:
      IOException