public final class TestProvidingInputStream extends AbstractCommandStream
InputStream
that, when read, provides test class names out of a queue.
provideNewTest()
has been invoked.
FlushReceiver
provided by the FlushReceiverProvider
that can be set using
AbstractForkInputStream.setFlushReceiverProvider(FlushReceiverProvider)
.
ForkStarter
by one Thread.Constructor and Description |
---|
TestProvidingInputStream(Queue<String> testClassNames)
C'tor
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeByeEventReceived() |
protected void |
beforeNextCommand()
Possibly waiting for next command (see
AbstractCommandStream.nextCommand() ) unless the stream is atomically
closed (see AbstractCommandStream.isClosed() returns true ) before this method has returned. |
void |
close() |
protected boolean |
isClosed() |
protected Command |
nextCommand() |
void |
noop() |
void |
provideNewTest()
Signal that a new test is to be provided.
|
void |
shutdown(Shutdown shutdownType) |
void |
skipSinceNextTest()
Sends an event to a fork jvm in order to skip tests.
|
canContinue, invalidateInternalBuffer, read
setFlushReceiverProvider, tryFlush
available, mark, markSupported, read, read, reset, skip
public void skipSinceNextTest()
NotifiableTestStream
public void shutdown(Shutdown shutdownType)
public void noop()
public void acknowledgeByeEventReceived()
protected Command nextCommand()
nextCommand
in class AbstractCommandStream
protected void beforeNextCommand() throws IOException
AbstractCommandStream
AbstractCommandStream.nextCommand()
) unless the stream is atomically
closed (see AbstractCommandStream.isClosed()
returns true
) before this method has returned.beforeNextCommand
in class AbstractCommandStream
IOException
- stream error while waiting for notification regarding next test required by forked jvmprotected boolean isClosed()
isClosed
in class AbstractCommandStream
public void provideNewTest()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.