Class TestsToRun
- java.lang.Object
-
- org.apache.maven.surefire.api.util.TestsToRun
-
-
Constructor Summary
Constructors Constructor Description TestsToRun(Set<Class<?>> locatedClasses)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowEagerReading()
boolean
containsAtLeast(int atLeast)
boolean
containsExactly(int items)
static TestsToRun
fromClass(Class<?> clazz)
Class<?>
getClassByName(String className)
Get test class which matches classNameClass<?>[]
getLocatedClasses()
boolean
isFinished()
Iterator<Class<?>>
iterated()
Iterator<Class<?>>
iterator()
Returns an iterator over the located java.lang.Class objectsvoid
markTestSetFinished()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
fromClass
public static TestsToRun fromClass(Class<?> clazz) throws TestSetFailedException
- Throws:
TestSetFailedException
-
iterated
public Iterator<Class<?>> iterated()
- Returns:
- test classes which have been retrieved by
iterator()
.
-
iterator
public Iterator<Class<?>> iterator()
Returns an iterator over the located java.lang.Class objects
-
markTestSetFinished
public final void markTestSetFinished()
-
isFinished
public final boolean isFinished()
-
containsAtLeast
public boolean containsAtLeast(int atLeast)
-
containsExactly
public boolean containsExactly(int items)
-
allowEagerReading
public boolean allowEagerReading()
- Returns:
true
, if the classes may be read eagerly.false
, if the classes must only be read lazy.
-
getLocatedClasses
public Class<?>[] getLocatedClasses()
-
-