public final class TestLessInputStream extends DefaultCommandReader
Modifier and Type | Class and Description |
---|---|
static class |
TestLessInputStream.TestLessInputStreamBuilder
Builds
streams , registers cachable commands
and provides accessible API to dispatch immediate commands to all atomically
alive streams. |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeByeEventReceived() |
protected void |
beforeNextCommand()
Possibly waiting for next command (see
DefaultCommandReader.nextCommand() ) unless the stream is atomically
closed (see CommandReader.isClosed() returns true ) before this method has returned. |
void |
close() |
boolean |
isClosed() |
protected org.apache.maven.surefire.api.booter.Command |
nextCommand() |
void |
noop() |
void |
provideNewTest()
Forked jvm notifies master process to provide a new test.
|
void |
shutdown(org.apache.maven.surefire.api.booter.Shutdown shutdownType) |
void |
skipSinceNextTest()
Sends an event to a fork jvm in order to skip tests.
|
canContinue, readNextCommand
setFlushReceiverProvider, tryFlush
public void provideNewTest()
NotifiableTestStream
TestProvidingInputStream
in order to dispatch a new test back to the forked
jvm (particular fork which hits this call); or do nothing in TestLessInputStream
.public void skipSinceNextTest()
NotifiableTestStream
public void shutdown(org.apache.maven.surefire.api.booter.Shutdown shutdownType)
public void noop()
public void acknowledgeByeEventReceived()
public boolean isClosed()
protected org.apache.maven.surefire.api.booter.Command nextCommand()
nextCommand
in class DefaultCommandReader
protected void beforeNextCommand() throws IOException
DefaultCommandReader
DefaultCommandReader.nextCommand()
) unless the stream is atomically
closed (see CommandReader.isClosed()
returns true
) before this method has returned.beforeNextCommand
in class DefaultCommandReader
IOException
- stream error while waiting for notification regarding next test required by forked jvmpublic void close()
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.