org.apache.maven.surefire.junit4
Class JUnit4TestSet

java.lang.Object
  extended by org.apache.maven.surefire.testset.AbstractTestSet
      extended by org.apache.maven.surefire.junit4.JUnit4TestSet
All Implemented Interfaces:
org.apache.maven.surefire.testset.SurefireTestSet

public class JUnit4TestSet
extends org.apache.maven.surefire.testset.AbstractTestSet


Constructor Summary
protected JUnit4TestSet(java.lang.Class testClass)
          Constructor.
 
Method Summary
 void execute(org.apache.maven.surefire.report.ReporterManager reportManager, java.lang.ClassLoader loader)
          Actually runs the test and adds the tests results to the reportManager.
 int getTestCount()
          Returns the number of tests to be run in this class.
 
Methods inherited from class org.apache.maven.surefire.testset.AbstractTestSet
getName, getTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4TestSet

protected JUnit4TestSet(java.lang.Class testClass)
Constructor.

Parameters:
testClass - the class to be run as a test
Method Detail

execute

public void execute(org.apache.maven.surefire.report.ReporterManager reportManager,
                    java.lang.ClassLoader loader)
             throws org.apache.maven.surefire.testset.TestSetFailedException
Actually runs the test and adds the tests results to the reportManager.

Throws:
org.apache.maven.surefire.testset.TestSetFailedException
See Also:
SurefireTestSet.execute(org.apache.maven.surefire.report.ReporterManager,java.lang.ClassLoader)

getTestCount

public int getTestCount()
                 throws org.apache.maven.surefire.testset.TestSetFailedException
Returns the number of tests to be run in this class.

Throws:
org.apache.maven.surefire.testset.TestSetFailedException
See Also:
SurefireTestSet.getTestCount()