public class BaseProviderFactory extends Object implements ProviderParameters, ShutdownAware
| Constructor and Description |
|---|
BaseProviderFactory(ReporterFactory reporterFactory,
boolean insideFork) |
| Modifier and Type | Method and Description |
|---|---|
ConsoleStream |
getConsoleLogger()
Gets a logger intended for console output.
|
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
|
Shutdown |
getShutdown() |
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 |
setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters) |
void |
setMainCliOptions(List<CommandLineOption> mainCliOptions) |
void |
setProviderProperties(Map<String,String> providerProperties) |
void |
setReporterConfiguration(ReporterConfiguration reporterConfiguration) |
void |
setRunOrderParameters(RunOrderParameters runOrderParameters) |
void |
setShutdown(Shutdown shutdown) |
void |
setSkipAfterFailureCount(int skipAfterFailureCount) |
void |
setSystemExitTimeout(Integer systemExitTimeout) |
void |
setTestArtifactInfo(TestArtifactInfo testArtifactInfo) |
void |
setTestRequest(TestRequest testRequest) |
public BaseProviderFactory(ReporterFactory reporterFactory, boolean insideFork)
@Deprecated public DirectoryScanner getDirectoryScanner()
ProviderParametersgetDirectoryScanner in interface ProviderParameterspublic ScanResult getScanResult()
ProviderParametersgetScanResult in interface ProviderParameterspublic RunOrderCalculator getRunOrderCalculator()
ProviderParametersgetRunOrderCalculator in interface ProviderParameterspublic ReporterFactory getReporterFactory()
ProviderParametersgetReporterFactory in interface ProviderParameterspublic void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)
public void setReporterConfiguration(ReporterConfiguration reporterConfiguration)
public void setClassLoaders(ClassLoader testClassLoader)
public ConsoleStream getConsoleLogger()
ProviderParametersgetConsoleLogger in interface ProviderParameterspublic void setTestRequest(TestRequest testRequest)
public DirectoryScannerParameters getDirectoryScannerParameters()
ProviderParametersgetDirectoryScannerParameters in interface ProviderParameterspublic ReporterConfiguration getReporterConfiguration()
ProviderParametersgetReporterConfiguration in interface ProviderParameterspublic TestRequest getTestRequest()
ProviderParametersgetTestRequest in interface ProviderParameterspublic ClassLoader getTestClassLoader()
ProviderParametersgetTestClassLoader in interface ProviderParameterspublic Map<String,String> getProviderProperties()
ProviderParametersgetProviderProperties in interface ProviderParameterspublic TestArtifactInfo getTestArtifactInfo()
ProviderParametersgetTestArtifactInfo in interface ProviderParameterspublic void setTestArtifactInfo(TestArtifactInfo testArtifactInfo)
public void setRunOrderParameters(RunOrderParameters runOrderParameters)
public List<CommandLineOption> getMainCliOptions()
getMainCliOptions in interface ProviderParameterspublic void setMainCliOptions(List<CommandLineOption> mainCliOptions)
public int getSkipAfterFailureCount()
getSkipAfterFailureCount in interface ProviderParametersskipAfterFailureCount in POM.public void setSkipAfterFailureCount(int skipAfterFailureCount)
public boolean isInsideFork()
isInsideFork in interface ProviderParameterstrue if test provider appears in forked jvm; Otherwise false means
in-plugin provider.public Shutdown getShutdown()
getShutdown in interface ProviderParameterspublic void setShutdown(Shutdown shutdown)
setShutdown in interface ShutdownAwarepublic Integer getSystemExitTimeout()
getSystemExitTimeout in interface ProviderParameterspublic void setSystemExitTimeout(Integer systemExitTimeout)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.