public class TestProvidingInputStream extends InputStream
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.
After providing each test class name, followed by a newline character, a flush is performed on the
FlushReceiver provided by the FlushReceiverProvider that can be set using
setFlushReceiverProvider(FlushReceiverProvider).| Constructor and Description |
|---|
TestProvidingInputStream(Queue<String> testItemQueue)
C'tor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
provideNewTest()
Signal that a new test is to be provided.
|
int |
read() |
void |
setFlushReceiverProvider(FlushReceiverProvider flushReceiverProvider) |
available, mark, markSupported, read, read, reset, skippublic void setFlushReceiverProvider(FlushReceiverProvider flushReceiverProvider)
flushReceiverProvider - the provider for a flush receiver.public int read()
throws IOException
read in class InputStreamIOExceptionpublic void provideNewTest()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamCopyright © 2004–2014 The Apache Software Foundation. All rights reserved.