Class TestProvidingInputStream

All Implemented Interfaces:
Closeable, AutoCloseable, NotifiableTestStream

public final class TestProvidingInputStream extends AbstractCommandStream
An InputStream that, when read, provides test class names out of a queue.
The Stream provides only one test at a time, but only after provideNewTest() has been invoked.
After providing each test class name, followed by a newline character, a flush is performed on the FlushReceiver provided by the FlushReceiverProvider that can be set using AbstractForkInputStream.setFlushReceiverProvider(FlushReceiverProvider).
The instance is used only in reusable forks in ForkStarter by one Thread.
  • Field Details

  • Constructor Details

    • TestProvidingInputStream

      public TestProvidingInputStream(Queue<String> testClassNames)
      C'tor
      Parameters:
      testClassNames - source of the tests to be read from this stream
  • Method Details