@Component(role=TestFrameworkProvider.class, hint="testng") public class TestNGProvider extends java.lang.Object implements TestFrameworkProvider
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
TESTNG_BSN |
private static org.osgi.framework.Version |
VERSION |
| Constructor and Description |
|---|
TestNGProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getProviderSpecificProperties()
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.String |
getSurefireProviderClassName()
Fully qualified class name of the surefire provider (must implement contract
http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).
|
java.lang.String |
getType()
The test framework type, such as junit or testng
|
org.osgi.framework.Version |
getVersion()
The test framework version.
|
boolean |
isEnabled(java.util.List<ClasspathEntry> testBundleClassPath,
java.util.Properties surefireProperties)
Whether this provider should be enabled for the given test bundle classpath and surefire
properties.
|
private static final java.lang.String TESTNG_BSN
private static final org.osgi.framework.Version VERSION
public java.lang.String getType()
TestFrameworkProvidergetType in interface TestFrameworkProviderpublic org.osgi.framework.Version getVersion()
TestFrameworkProvidergetVersion in interface TestFrameworkProviderpublic java.lang.String getSurefireProviderClassName()
TestFrameworkProvidergetSurefireProviderClassName in interface TestFrameworkProviderpublic boolean isEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties surefireProperties)
TestFrameworkProviderisEnabled in interface TestFrameworkProvidertestBundleClassPath - classpath of the test bundlesurefireProperties - surefire provider propertiespublic java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
TestFrameworkProvidernull) will be matched against
the plugin dependencies of tycho-surefire-plugin.getRequiredBundles in interface TestFrameworkProviderpublic java.util.Properties getProviderSpecificProperties()
TestFrameworkProvidergetProviderSpecificProperties in interface TestFrameworkProvider