public class BaseProviderFactory extends Object implements ProviderParameters, ShutdownAware
Constructor and Description |
---|
BaseProviderFactory(ReporterFactory reporterFactory,
boolean insideFork) |
Modifier and Type | Method and Description |
---|---|
ConsoleLogger |
getConsoleLogger()
Gets a logger intended for console output.
|
DirectoryScanner |
getDirectoryScanner()
Provides a directory scanner that enforces the includes/excludes parameters that were passed to surefire.
|
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()
Defaults to 0.
|
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 |
setTestArtifactInfo(TestArtifactInfo testArtifactInfo) |
void |
setTestRequest(TestRequest testRequest) |
public BaseProviderFactory(ReporterFactory reporterFactory, boolean insideFork)
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 ReporterFactory getReporterFactory()
ProviderParameters
getReporterFactory
in interface ProviderParameters
public void setDirectoryScannerParameters(DirectoryScannerParameters directoryScannerParameters)
public void setReporterConfiguration(ReporterConfiguration reporterConfiguration)
public void setClassLoaders(ClassLoader testClassLoader)
public ConsoleLogger getConsoleLogger()
ProviderParameters
getConsoleLogger
in interface ProviderParameters
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)
public int getSkipAfterFailureCount()
ProviderParameters
getSkipAfterFailureCount
in interface ProviderParameters
public void setSkipAfterFailureCount(int skipAfterFailureCount)
public boolean isInsideFork()
isInsideFork
in interface ProviderParameters
true
if test provider appears in forked jvm; Otherwise false
means
in-plugin provider.public Shutdown getShutdown()
getShutdown
in interface ProviderParameters
public void setShutdown(Shutdown shutdown)
setShutdown
in interface ShutdownAware
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.