Class TestLessInputStream
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandReader
-
- org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
-
- org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestLessInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,NotifiableTestStream,org.apache.maven.surefire.extensions.CommandReader
public final class TestLessInputStream extends DefaultCommandReader
Dispatches commands without tests.- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestLessInputStream.TestLessInputStreamBuilderBuildsstreams, registers cachable commands and provides accessible API to dispatch immediate commands to all atomically alive streams.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledgeByeEventReceived()protected voidbeforeNextCommand()Possibly waiting for next command (seeDefaultCommandReader.nextCommand()) unless the stream is atomically closed (seeCommandReader.isClosed()returnstrue) before this method has returned.voidclose()booleanisClosed()protected org.apache.maven.surefire.api.booter.CommandnextCommand()voidnoop()voidprovideNewTest()Forked jvm notifies master process to provide a new test.voidshutdown(org.apache.maven.surefire.api.booter.Shutdown shutdownType)voidskipSinceNextTest()Sends an event to a fork jvm in order to skip tests.-
Methods inherited from class org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
canContinue, readNextCommand
-
-
-
-
Method Detail
-
provideNewTest
public void provideNewTest()
Description copied from interface:NotifiableTestStreamForked jvm notifies master process to provide a new test.
NotifiesTestProvidingInputStreamin order to dispatch a new test back to the forked jvm (particular fork which hits this call); or do nothing inTestLessInputStream.
-
skipSinceNextTest
public void skipSinceNextTest()
Description copied from interface:NotifiableTestStreamSends an event to a fork jvm in order to skip tests. Returns immediately without blocking.
-
shutdown
public void shutdown(org.apache.maven.surefire.api.booter.Shutdown shutdownType)
-
noop
public void noop()
-
acknowledgeByeEventReceived
public void acknowledgeByeEventReceived()
-
isClosed
public boolean isClosed()
-
nextCommand
protected org.apache.maven.surefire.api.booter.Command nextCommand()
- Specified by:
nextCommandin classDefaultCommandReader
-
beforeNextCommand
protected void beforeNextCommand() throws java.io.IOExceptionDescription copied from class:DefaultCommandReaderPossibly waiting for next command (seeDefaultCommandReader.nextCommand()) unless the stream is atomically closed (seeCommandReader.isClosed()returnstrue) before this method has returned.- Overrides:
beforeNextCommandin classDefaultCommandReader- Throws:
java.io.IOException- stream error while waiting for notification regarding next test required by forked jvm
-
close
public void close()
-
-