Class TestSuite
java.lang.Object
com.tibco.ep.buildmavenplugin.surefire.TestSuite
- All Implemented Interfaces:
org.apache.maven.surefire.suite.SurefireTestSuite
Test suite to run an explicit set of named unit test classes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(String testSetName, org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) Execute test testvoid
execute
(org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) Execute test suiteint
Number of test caseslocateTestSets
(ClassLoader classLoader) Locate test sets
-
Field Details
-
bundle
SureFire resource bundle
-
-
Constructor Details
-
TestSuite
Create a test suite runner for a series of test classes.- Parameters:
testClasses
- array of test class names
-
-
Method Details
-
execute
public void execute(org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) throws org.apache.maven.surefire.report.ReporterException, org.apache.maven.surefire.testset.TestSetFailedException Execute test suite- Specified by:
execute
in interfaceorg.apache.maven.surefire.suite.SurefireTestSuite
- Parameters:
reporterManager
- Report managerclassLoader
- class loader- Throws:
org.apache.maven.surefire.report.ReporterException
- Reporting exceptionorg.apache.maven.surefire.testset.TestSetFailedException
- Test failure exception
-
execute
public void execute(String testSetName, org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) throws org.apache.maven.surefire.report.ReporterException, org.apache.maven.surefire.testset.TestSetFailedException Execute test test- Specified by:
execute
in interfaceorg.apache.maven.surefire.suite.SurefireTestSuite
- Parameters:
testSetName
- Name of test setreporterManager
- Report managerclassLoader
- Class loader- Throws:
org.apache.maven.surefire.report.ReporterException
- Reporting exceptionorg.apache.maven.surefire.testset.TestSetFailedException
- Test failure exception
-
getNumTests
public int getNumTests()Number of test cases- Specified by:
getNumTests
in interfaceorg.apache.maven.surefire.suite.SurefireTestSuite
- Returns:
- Number of test cases
-
locateTestSets
public Map<String,org.apache.maven.surefire.testset.SurefireTestSet> locateTestSets(ClassLoader classLoader) throws org.apache.maven.surefire.testset.TestSetFailedException Locate test sets- Specified by:
locateTestSets
in interfaceorg.apache.maven.surefire.suite.SurefireTestSuite
- Parameters:
classLoader
- Class loader- Returns:
- Map of test sets
- Throws:
org.apache.maven.surefire.testset.TestSetFailedException
- Test failure exception
-