Class TestLessInputStream
java.lang.Object
java.io.InputStream
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractForkInputStream
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandStream
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestLessInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,NotifiableTestStream
Dispatches commands without tests.
- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuildsstreams, registers cachable commands and provides accessible API to dispatch immediate commands to all atomically alive streams. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidPossibly waiting for next command (seeAbstractCommandStream.nextCommand()) unless the stream is atomically closed (seeAbstractCommandStream.isClosed()returnstrue) before this method has returned.voidclose()protected booleanisClosed()protected org.apache.maven.surefire.booter.Commandvoidnoop()voidNotifiesTestProvidingInputStreamin order to dispatch a new test back to the forked jvm (particular fork which hits this call); or do nothing inTestLessInputStream.voidshutdown(org.apache.maven.surefire.booter.Shutdown shutdownType) voidSends an event to a fork jvm in order to skip tests.Methods inherited from class org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandStream
canContinue, invalidateInternalBuffer, readMethods inherited from class org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractForkInputStream
setFlushReceiverProvider, tryFlushMethods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
provideNewTest
public void provideNewTest()Description copied from interface:NotifiableTestStreamNotifiesTestProvidingInputStreamin 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.booter.Shutdown shutdownType) -
noop
public void noop() -
acknowledgeByeEventReceived
public void acknowledgeByeEventReceived() -
isClosed
protected boolean isClosed()- Specified by:
isClosedin classAbstractCommandStream
-
nextCommand
protected org.apache.maven.surefire.booter.Command nextCommand()- Specified by:
nextCommandin classAbstractCommandStream
-
beforeNextCommand
Description copied from class:AbstractCommandStreamPossibly waiting for next command (seeAbstractCommandStream.nextCommand()) unless the stream is atomically closed (seeAbstractCommandStream.isClosed()returnstrue) before this method has returned.- Overrides:
beforeNextCommandin classAbstractCommandStream- Throws:
IOException- stream error while waiting for notification regarding next test required by forked jvm
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-