@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()
TestFrameworkProvider
getType
in interface TestFrameworkProvider
public org.osgi.framework.Version getVersion()
TestFrameworkProvider
getVersion
in interface TestFrameworkProvider
public java.lang.String getSurefireProviderClassName()
TestFrameworkProvider
getSurefireProviderClassName
in interface TestFrameworkProvider
public boolean isEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties surefireProperties)
TestFrameworkProvider
isEnabled
in interface TestFrameworkProvider
testBundleClassPath
- classpath of the test bundlesurefireProperties
- surefire provider propertiespublic java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
TestFrameworkProvider
null
) will be matched against
the plugin dependencies of tycho-surefire-plugin.getRequiredBundles
in interface TestFrameworkProvider
public java.util.Properties getProviderSpecificProperties()
TestFrameworkProvider
getProviderSpecificProperties
in interface TestFrameworkProvider