org.apache.maven.surefire.util
Class TestsToRun

java.lang.Object
  extended by org.apache.maven.surefire.util.TestsToRun
Direct Known Subclasses:
LazyTestsToRun

public class TestsToRun
extends Object

Contains all the tests that have been found according to specified include/exclude specification for a given surefire run.

Author:
Kristian Rosenvold (junit core adaption)

Constructor Summary
TestsToRun(List locatedClasses)
          Constructor
 
Method Summary
 boolean allowEagerReading()
           
 boolean containsAtLeast(int atLeast)
           
 boolean containsExactly(int items)
           
static TestsToRun fromClass(Class clazz)
           
 Class[] getLocatedClasses()
           
 Iterator iterator()
          Returns an iterator over the located java.lang.Class objects
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestsToRun

public TestsToRun(List locatedClasses)
Constructor

Parameters:
locatedClasses - A list of java.lang.Class objects representing tests to run
Method Detail

fromClass

public static TestsToRun fromClass(Class clazz)
                            throws TestSetFailedException
Throws:
TestSetFailedException

iterator

public Iterator iterator()
Returns an iterator over the located java.lang.Class objects

Returns:
an unmodifiable iterator

toString

public String toString()
Overrides:
toString in class Object

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()


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.