public class BaseProviderFactory extends Object implements ProviderParameters
Constructor and Description |
---|
BaseProviderFactory(boolean insideFork) |
Modifier and Type | Method and Description |
---|---|
CommandChainReader |
getCommandReader() |
DirectoryScanner |
getDirectoryScanner()
Deprecated.
|
DirectoryScannerParameters |
getDirectoryScannerParameters()
The raw parameters used in creating the directory scanner
|
List<CommandLineOption> |
getMainCliOptions() |
Map<String,String> |
getProviderProperties()
The per-provider specific properties that may come all the way from the plugin's properties setting.
|
ReporterConfiguration |
getReporterConfiguration()
The raw parameters used in creating the ReporterManagerFactory
|
ReporterFactory |
getReporterFactory()
Provides features for creating reporting objects
|
RunOrderCalculator |
getRunOrderCalculator()
Provides a service to calculate run order of tests.
|
ScanResult |
getScanResult()
Provides the result of the directory scan performed in the plugin
|
int |
getSkipAfterFailureCount() |
Integer |
getSystemExitTimeout() |
TestArtifactInfo |
getTestArtifactInfo()
Artifact info about the artifact used to autodetect provider
|
ClassLoader |
getTestClassLoader()
The class loader for the tests
|
TestRequest |
getTestRequest()
Contains information about requested test suites or individual tests from the command line.
|
boolean |
isInsideFork() |
void |
setClassLoaders(ClassLoader testClassLoader) |
void |
setCommandReader(CommandChainReader commandReader) |
void |
setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters) |
void |
setMainCliOptions(List<CommandLineOption> mainCliOptions)
CLI options in plugin (main) JVM process.
|
void |
setProviderProperties(Map<String,String> providerProperties) |
void |
setReporterConfiguration(ReporterConfiguration reporterConfiguration) |
void |
setReporterFactory(ReporterFactory reporterFactory) |
void |
setRunOrderParameters(RunOrderParameters runOrderParameters) |
void |
setSkipAfterFailureCount(int skipAfterFailureCount)
See the plugin configuration parameter "skipAfterFailureCount".
|
void |
setSystemExitTimeout(Integer systemExitTimeout) |
void |
setTestArtifactInfo(TestArtifactInfo testArtifactInfo) |
void |
setTestRequest(TestRequest testRequest) |
public CommandChainReader getCommandReader()
getCommandReader
in interface ProviderParameters
public void setCommandReader(CommandChainReader commandReader)
@Deprecated public DirectoryScanner getDirectoryScanner()
ProviderParameters
getDirectoryScanner
in interface ProviderParameters
public ScanResult getScanResult()
ProviderParameters
getScanResult
in interface ProviderParameters
public RunOrderCalculator getRunOrderCalculator()
ProviderParameters
getRunOrderCalculator
in interface ProviderParameters
public void setReporterFactory(ReporterFactory reporterFactory)
public ReporterFactory getReporterFactory()
ProviderParameters
getReporterFactory
in interface ProviderParameters
public void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)
public void setReporterConfiguration(ReporterConfiguration reporterConfiguration)
public void setClassLoaders(ClassLoader testClassLoader)
public void setTestRequest(TestRequest testRequest)
public DirectoryScannerParameters getDirectoryScannerParameters()
ProviderParameters
getDirectoryScannerParameters
in interface ProviderParameters
public ReporterConfiguration getReporterConfiguration()
ProviderParameters
getReporterConfiguration
in interface ProviderParameters
public TestRequest getTestRequest()
ProviderParameters
getTestRequest
in interface ProviderParameters
public ClassLoader getTestClassLoader()
ProviderParameters
getTestClassLoader
in interface ProviderParameters
public Map<String,String> getProviderProperties()
ProviderParameters
getProviderProperties
in interface ProviderParameters
public TestArtifactInfo getTestArtifactInfo()
ProviderParameters
getTestArtifactInfo
in interface ProviderParameters
public void setTestArtifactInfo(TestArtifactInfo testArtifactInfo)
public void setRunOrderParameters(RunOrderParameters runOrderParameters)
public List<CommandLineOption> getMainCliOptions()
getMainCliOptions
in interface ProviderParameters
public void setMainCliOptions(List<CommandLineOption> mainCliOptions)
mainCliOptions
- optionspublic int getSkipAfterFailureCount()
getSkipAfterFailureCount
in interface ProviderParameters
skipAfterFailureCount
in POM.public void setSkipAfterFailureCount(int skipAfterFailureCount)
skipAfterFailureCount
- the value in config parameter "skipAfterFailureCount"public boolean isInsideFork()
isInsideFork
in interface ProviderParameters
true
if test provider appears in forked jvm; Otherwise false
means
in-plugin provider.public Integer getSystemExitTimeout()
getSystemExitTimeout
in interface ProviderParameters
public void setSystemExitTimeout(Integer systemExitTimeout)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.