org.apache.maven.surefire.suite
Class AbstractDirectoryTestSuite

java.lang.Object
  extended by org.apache.maven.surefire.suite.AbstractDirectoryTestSuite
All Implemented Interfaces:
SurefireTestSuite

public abstract class AbstractDirectoryTestSuite
extends java.lang.Object
implements SurefireTestSuite


Field Summary
private  java.io.File basedir
           
protected  java.util.ResourceBundle bundle
           
private static java.lang.String[] EMPTY_STRING_ARRAY
           
private  java.util.List excludes
           
private static java.lang.String FS
           
private  java.util.List includes
           
protected  java.util.Map testSets
           
private  int totalTests
           
 
Constructor Summary
protected AbstractDirectoryTestSuite(java.io.File basedir, java.util.List includes, java.util.List excludes)
           
 
Method Summary
private  java.lang.String[] collectTests(java.io.File basedir, java.util.List includes, java.util.List excludes)
           
protected abstract  SurefireTestSet createTestSet(java.lang.Class testClass, java.lang.ClassLoader classLoader)
           
 void execute(ReporterManager reporterManager, java.lang.ClassLoader classLoader)
           
 void execute(java.lang.String testSetName, ReporterManager reporterManager, java.lang.ClassLoader classLoader)
           
private  void executeTestSet(SurefireTestSet testSet, ReporterManager reporterManager, java.lang.ClassLoader classLoader)
           
 int getNumTests()
           
 int getNumTestSets()
           
 java.util.Map locateTestSets(java.lang.ClassLoader classLoader)
           
private static java.lang.String[] processIncludesExcludes(java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected java.util.ResourceBundle bundle

FS

private static final java.lang.String FS

basedir

private java.io.File basedir

includes

private java.util.List includes

excludes

private java.util.List excludes

testSets

protected java.util.Map testSets

totalTests

private int totalTests

EMPTY_STRING_ARRAY

private static final java.lang.String[] EMPTY_STRING_ARRAY
Constructor Detail

AbstractDirectoryTestSuite

protected AbstractDirectoryTestSuite(java.io.File basedir,
                                     java.util.List includes,
                                     java.util.List excludes)
Method Detail

locateTestSets

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

createTestSet

protected abstract SurefireTestSet createTestSet(java.lang.Class testClass,
                                                 java.lang.ClassLoader classLoader)
                                          throws TestSetFailedException
Throws:
TestSetFailedException

execute

public void execute(ReporterManager reporterManager,
                    java.lang.ClassLoader classLoader)
             throws ReporterException,
                    TestSetFailedException
Specified by:
execute in interface SurefireTestSuite
Throws:
ReporterException
TestSetFailedException

executeTestSet

private void executeTestSet(SurefireTestSet testSet,
                            ReporterManager reporterManager,
                            java.lang.ClassLoader classLoader)
                     throws ReporterException,
                            TestSetFailedException
Throws:
ReporterException
TestSetFailedException

execute

public void execute(java.lang.String testSetName,
                    ReporterManager reporterManager,
                    java.lang.ClassLoader classLoader)
             throws ReporterException,
                    TestSetFailedException
Specified by:
execute in interface SurefireTestSuite
Throws:
ReporterException
TestSetFailedException

getNumTests

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

getNumTestSets

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

collectTests

private java.lang.String[] collectTests(java.io.File basedir,
                                        java.util.List includes,
                                        java.util.List excludes)

processIncludesExcludes

private static java.lang.String[] processIncludesExcludes(java.util.List list)