Class TestProvidingInputStream
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.TestProvidingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,NotifiableTestStream,CommandReader
An
The Stream provides only one test at a time, but only after
The instance is used only in reusable forks in
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.
The instance is used only in reusable forks in
ForkStarter
by one Thread.- Author:
- Andreas Gudian, Tibor Digana (tibor17)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidPossibly waiting for next command (seeDefaultCommandReader.nextCommand()) unless the stream is atomically closed (seeCommandReader.isClosed()returnstrue) before this method has returned.voidclose()booleanisClosed()protected Commandvoidnoop()voidSignal that a new test is to be provided.voidvoidSends 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
-
Constructor Details
-
TestProvidingInputStream
C'tor- Parameters:
testClassNames- source of the tests to be read from this stream
-
-
Method Details
-
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
-
noop
public void noop() -
acknowledgeByeEventReceived
public void acknowledgeByeEventReceived() -
nextCommand
- Specified by:
nextCommandin classDefaultCommandReader
-
beforeNextCommand
Description 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:
IOException- stream error while waiting for notification regarding next test required by forked jvm
-
isClosed
public boolean isClosed() -
provideNewTest
public void provideNewTest()Signal that a new test is to be provided. -
close
public void close()
-