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:
SurefireTestSuite

public class JUnit4DirectoryTestSuite
extends 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(DirectoryScanner surefireDirectoryScanner, java.util.List<org.junit.runner.notification.RunListener> customRunListeners)
           
JUnit4DirectoryTestSuite(java.io.File basedir, java.util.ArrayList includes, java.util.ArrayList excludes)
           
 
Method Summary
protected  SurefireTestSet createTestSet(java.lang.Class testClass, java.lang.ClassLoader testsClassLoader)
          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, getClassesSkippedByValidation, getNumTests, 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)

JUnit4DirectoryTestSuite

public JUnit4DirectoryTestSuite(DirectoryScanner surefireDirectoryScanner,
                                java.util.List<org.junit.runner.notification.RunListener> customRunListeners)
Method Detail

createTestSet

protected SurefireTestSet createTestSet(java.lang.Class testClass,
                                        java.lang.ClassLoader testsClassLoader)
                                 throws 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 AbstractDirectoryTestSuite
Throws:
TestSetFailedException
See Also:
AbstractDirectoryTestSuite.createTestSet(java.lang.Class, java.lang.ClassLoader)


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