public class LazyTestsToRun extends TestsToRun
InputStream
(e.g. System.in
). The method
iterator()
returns an Iterator that blocks on calls to
Iterator.hasNext()
until new classes are available, or no more
classes will be available.Constructor and Description |
---|
LazyTestsToRun(InputStream testSource,
ClassLoader testClassLoader,
PrintStream originalOutStream)
C'tor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addWorkItem(String className) |
boolean |
allowEagerReading() |
Iterator |
iterator()
Returns an iterator over the located java.lang.Class objects
|
protected void |
requestNextTest() |
String |
toString() |
containsAtLeast, containsExactly, fromClass, getLocatedClasses
public LazyTestsToRun(InputStream testSource, ClassLoader testClassLoader, PrintStream originalOutStream)
testSource
- source to read the tests fromtestClassLoader
- class loader to load the test classesoriginalOutStream
- the output stream to use when requesting new new testsprotected void addWorkItem(String className)
protected void requestNextTest()
public Iterator iterator()
TestsToRun
iterator
in class TestsToRun
public String toString()
toString
in class TestsToRun
public boolean allowEagerReading()
allowEagerReading
in class TestsToRun
true
, if the classes may be read eagerly. false
,
if the classes must only be read lazy.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.