org.apache.maven.surefire.junit4
Class JUnit4DirectoryTestSuite

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

public class JUnit4DirectoryTestSuite
extends org.apache.maven.surefire.suite.AbstractDirectoryTestSuite

Test suite for JUnit4 based on a directory of Java test classes. This is capable of running both JUnit3 and JUnit4 test classes (I think).

Author:
Karl M. Davis

Field Summary
 
Fields inherited from class org.apache.maven.surefire.suite.AbstractDirectoryTestSuite
bundle, testSets
 
Constructor Summary
JUnit4DirectoryTestSuite(java.io.File basedir, java.util.ArrayList includes, java.util.ArrayList excludes)
          Constructor.
 
Method Summary
protected  org.apache.maven.surefire.testset.SurefireTestSet createTestSet(java.lang.Class testClass, java.lang.ClassLoader classLoader)
          This method will be called for each class to be run as a test.
 
Methods inherited from class org.apache.maven.surefire.suite.AbstractDirectoryTestSuite
execute, execute, getNumTests, getNumTestSets, locateTestSets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4DirectoryTestSuite

public JUnit4DirectoryTestSuite(java.io.File basedir,
                                java.util.ArrayList includes,
                                java.util.ArrayList excludes)
Constructor.

Method Detail

createTestSet

protected org.apache.maven.surefire.testset.SurefireTestSet createTestSet(java.lang.Class testClass,
                                                                          java.lang.ClassLoader classLoader)
                                                                   throws org.apache.maven.surefire.testset.TestSetFailedException
This method will be called for each class to be run as a test. It returns a surefire test set that will later be executed.

Specified by:
createTestSet in class org.apache.maven.surefire.suite.AbstractDirectoryTestSuite
Throws:
org.apache.maven.surefire.testset.TestSetFailedException
See Also:
AbstractDirectoryTestSuite.createTestSet(java.lang.Class, java.lang.ClassLoader)