Interface TestFrameworkProvider
-
- All Known Implementing Classes:
AbstractJUnitProvider,JUnit3Provider,JUnit47Provider,JUnit4Provider,JUnit5Provider,TestNGProvider
public interface TestFrameworkProviderSurefire provider adapter for tycho. Any plexusComponentin the classpath of tycho-surefire-plugin implementing this interface is registered as a tycho test framework provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.PropertiesgetProviderSpecificProperties()Provider specific properties that are added to the generic test properties.java.util.List<org.apache.maven.model.Dependency>getRequiredBundles()The list of OSGi bundles required by the test framework provider as maven artifacts.java.lang.StringgetSurefireProviderClassName()Fully qualified class name of the surefire provider (must implement contract http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).java.lang.StringgetType()The test framework type, such as junit or testngorg.osgi.framework.VersiongetVersion()The test framework version.booleanisEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties providerProperties)Whether this provider should be enabled for the given test bundle classpath and surefire properties.
-
-
-
Method Detail
-
getType
java.lang.String getType()
The test framework type, such as junit or testng
-
getVersion
org.osgi.framework.Version getVersion()
The test framework version. If several providers of the same type are enabled, the one with the highest version wins.
-
getSurefireProviderClassName
java.lang.String getSurefireProviderClassName()
Fully qualified class name of the surefire provider (must implement contract http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).
-
isEnabled
boolean isEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties providerProperties)
Whether this provider should be enabled for the given test bundle classpath and surefire properties.- Parameters:
testBundleClassPath- classpath of the test bundleproviderProperties- surefire provider properties
-
getRequiredBundles
java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
The list of OSGi bundles required by the test framework provider as maven artifacts. The groupId, artifactId and optionally version (if !=null) will be matched against the plugin dependencies of tycho-surefire-plugin.
-
getProviderSpecificProperties
java.util.Properties getProviderSpecificProperties()
Provider specific properties that are added to the generic test properties. Implementations must not return null.- Returns:
-
-