org.apache.maven.surefire.providerapi
Interface ProviderParameters

All Known Implementing Classes:
BaseProviderFactory

public interface ProviderParameters

Injected into the providers upon provider construction. Allows the provider to request services and data it needs. NOTE: This class is part of the proposed public api for surefire providers from 2.7 and up. It may still be subject to changes, even for minor revisions. The api covers this interface and all the types reachable from it. And nothing else.

Author:
Kristian Rosenvold

Method Summary
 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
 Properties 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
 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.
 

Method Detail

getDirectoryScanner

DirectoryScanner getDirectoryScanner()
Provides a directory scanner that enforces the includes/excludes parameters that were passed to surefire. See #getDirectoryScannerParameters for details

Returns:
The directory scanner

getReporterFactory

ReporterFactory getReporterFactory()
Provides features for creating reporting objects

Returns:
A ReporterFactory that allows the creation of one or more ReporterManagers

getDirectoryScannerParameters

DirectoryScannerParameters getDirectoryScannerParameters()
The raw parameters used in creating the directory scanner

Returns:
The parameters

getReporterConfiguration

ReporterConfiguration getReporterConfiguration()
The raw parameters used in creating the ReporterManagerFactory

Returns:
The reporter configuration

getTestRequest

TestRequest getTestRequest()
Contains information about requested test suites or individual tests from the command line.

Returns:
The testRequest

getTestClassLoader

ClassLoader getTestClassLoader()
The class loader for the tests

Returns:
the classloader

getProviderProperties

Properties getProviderProperties()
The per-provider specific properties that may come all the way from the plugin's properties setting.

Returns:
the provider specific properties

getTestArtifactInfo

TestArtifactInfo getTestArtifactInfo()
Artifact info about the artifact used to autodetect provider

Returns:
The artifactinfo, or null if autodetect was not used.


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.