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 TypeMethodDescriptionvoidexecute(String testSetName, org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) Execute test testvoidexecute(org.apache.maven.surefire.report.ReporterManager reporterManager, ClassLoader classLoader) Execute test suiteintNumber 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:
executein 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:
executein 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:
getNumTestsin 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:
locateTestSetsin 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
-