Class BaseProviderFactory
java.lang.Object
org.apache.maven.surefire.api.booter.BaseProviderFactory
- All Implemented Interfaces:
 ProviderParameters
- Author:
 - Kristian Rosenvold
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The raw parameters used in creating the directory scannerThe per-provider specific properties that may come all the way from the plugin's properties setting.The raw parameters used in creating the ReporterManagerFactoryProvides features for creating reporting objectsProvides a service to calculate run order of tests.Provides the result of the directory scan performed in the pluginintArtifact info about the artifact used to autodetect providerThe class loader for the testsContains information about requested test suites or individual tests from the command line.booleanvoidsetClassLoaders(ClassLoader testClassLoader) voidsetCommandReader(CommandChainReader commandReader) voidsetDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters) voidsetMainCliOptions(List<CommandLineOption> mainCliOptions) CLI options in plugin (main) JVM process.voidsetProviderProperties(Map<String, String> providerProperties) voidsetReporterConfiguration(ReporterConfiguration reporterConfiguration) voidsetReporterFactory(ReporterFactory reporterFactory) voidsetRunOrderParameters(RunOrderParameters runOrderParameters) voidsetSkipAfterFailureCount(int skipAfterFailureCount) See the plugin configuration parameter "skipAfterFailureCount".voidsetSystemExitTimeout(Integer systemExitTimeout) voidsetTestArtifactInfo(TestArtifactInfo testArtifactInfo) voidsetTestRequest(TestRequest testRequest)  
- 
Constructor Details
- 
BaseProviderFactory
public BaseProviderFactory(boolean insideFork)  
 - 
 - 
Method Details
- 
getCommandReader
- Specified by:
 getCommandReaderin interfaceProviderParameters
 - 
setCommandReader
 - 
getDirectoryScanner
Deprecated.Description copied from interface:ProviderParametersProvides a directory scanner that enforces the includes/excludes parameters that were passed to surefire. See #getDirectoryScannerParameters for details- Specified by:
 getDirectoryScannerin interfaceProviderParameters- Returns:
 - The directory scanner
 
 - 
getScanResult
Description copied from interface:ProviderParametersProvides the result of the directory scan performed in the plugin- Specified by:
 getScanResultin interfaceProviderParameters- Returns:
 - The scan result
 
 - 
getRunOrderCalculator
Description copied from interface:ProviderParametersProvides a service to calculate run order of tests. Applied after directory scanning.- Specified by:
 getRunOrderCalculatorin interfaceProviderParameters- Returns:
 - A RunOrderCalculator
 
 - 
setReporterFactory
 - 
getReporterFactory
Description copied from interface:ProviderParametersProvides features for creating reporting objects- Specified by:
 getReporterFactoryin interfaceProviderParameters- Returns:
 - A ReporterFactory that allows the creation of one or more ReporterManagers
 
 - 
setDirectoryScannerParameters
 - 
setReporterConfiguration
 - 
setClassLoaders
 - 
setTestRequest
 - 
getDirectoryScannerParameters
Description copied from interface:ProviderParametersThe raw parameters used in creating the directory scanner- Specified by:
 getDirectoryScannerParametersin interfaceProviderParameters- Returns:
 - The parameters
 
 - 
getReporterConfiguration
Description copied from interface:ProviderParametersThe raw parameters used in creating the ReporterManagerFactory- Specified by:
 getReporterConfigurationin interfaceProviderParameters- Returns:
 - The reporter configuration
 
 - 
getTestRequest
Description copied from interface:ProviderParametersContains information about requested test suites or individual tests from the command line.- Specified by:
 getTestRequestin interfaceProviderParameters- Returns:
 - The testRequest
 
 - 
getTestClassLoader
Description copied from interface:ProviderParametersThe class loader for the tests- Specified by:
 getTestClassLoaderin interfaceProviderParameters- Returns:
 - the classloader
 
 - 
setProviderProperties
 - 
getProviderProperties
Description copied from interface:ProviderParametersThe per-provider specific properties that may come all the way from the plugin's properties setting.- Specified by:
 getProviderPropertiesin interfaceProviderParameters- Returns:
 - the provider specific properties
 
 - 
getTestArtifactInfo
Description copied from interface:ProviderParametersArtifact info about the artifact used to autodetect provider- Specified by:
 getTestArtifactInfoin interfaceProviderParameters- Returns:
 - The artifactinfo, or null if autodetect was not used.
 
 - 
setTestArtifactInfo
 - 
setRunOrderParameters
 - 
getMainCliOptions
- Specified by:
 getMainCliOptionsin interfaceProviderParameters
 - 
setMainCliOptions
CLI options in plugin (main) JVM process.- Parameters:
 mainCliOptions- options
 - 
getSkipAfterFailureCount
public int getSkipAfterFailureCount()- Specified by:
 getSkipAfterFailureCountin interfaceProviderParameters- Returns:
 - Defaults to 0. Configured with parameter 
skipAfterFailureCountin POM. 
 - 
setSkipAfterFailureCount
public void setSkipAfterFailureCount(int skipAfterFailureCount) See the plugin configuration parameter "skipAfterFailureCount".- Parameters:
 skipAfterFailureCount- the value in config parameter "skipAfterFailureCount"
 - 
isInsideFork
public boolean isInsideFork()- Specified by:
 isInsideForkin interfaceProviderParameters- Returns:
 trueif test provider appears in forked jvm; Otherwisefalsemeans in-plugin provider.
 - 
getSystemExitTimeout
- Specified by:
 getSystemExitTimeoutin interfaceProviderParameters
 - 
setSystemExitTimeout
 
 -