org.apache.maven.surefire.junitcore
Class JUnitCoreDirectoryTestSuite

java.lang.Object
  extended by org.apache.maven.surefire.junitcore.JUnitCoreDirectoryTestSuite
All Implemented Interfaces:
SurefireTestSuite

public class JUnitCoreDirectoryTestSuite
extends Object
implements SurefireTestSuite

Test suite for JUnitCore based on a directory of Java test classes.

Author:
Karl M. Davis, Kristian Rosenvold (junit core adaption)

Field Summary
protected  Map testSets
           
 
Constructor Summary
JUnitCoreDirectoryTestSuite(File basedir, ArrayList includes, ArrayList excludes, Properties properties)
           
 
Method Summary
 void execute(ReporterManagerFactory reporterManagerFactory, ClassLoader classLoader)
           
 void execute(String testSetName, ReporterManagerFactory reporterManagerFactory, ClassLoader classLoader)
           
 int getNumTests()
           
 Map locateTestSets(ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testSets

protected Map testSets
Constructor Detail

JUnitCoreDirectoryTestSuite

public JUnitCoreDirectoryTestSuite(File basedir,
                                   ArrayList includes,
                                   ArrayList excludes,
                                   Properties properties)
Method Detail

execute

public void execute(ReporterManagerFactory reporterManagerFactory,
                    ClassLoader classLoader)
             throws ReporterException,
                    TestSetFailedException
Specified by:
execute in interface SurefireTestSuite
Throws:
ReporterException
TestSetFailedException

execute

public void execute(String testSetName,
                    ReporterManagerFactory reporterManagerFactory,
                    ClassLoader classLoader)
             throws ReporterException,
                    TestSetFailedException
Specified by:
execute in interface SurefireTestSuite
Throws:
ReporterException
TestSetFailedException

locateTestSets

public Map locateTestSets(ClassLoader classLoader)
                   throws TestSetFailedException
Specified by:
locateTestSets in interface SurefireTestSuite
Throws:
TestSetFailedException

getNumTests

public int getNumTests()
Specified by:
getNumTests in interface SurefireTestSuite


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