Class TestNGProvider
- java.lang.Object
-
- org.eclipse.tycho.surefire.provider.impl.TestNGProvider
-
- All Implemented Interfaces:
TestFrameworkProvider
@Component(role=TestFrameworkProvider.class, hint="testng") public class TestNGProvider extends java.lang.Object implements TestFrameworkProvider
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringTESTNG_BSNprivate static org.osgi.framework.VersionVERSION
-
Constructor Summary
Constructors Constructor Description TestNGProvider()
-
Method Summary
All Methods Instance Methods Concrete 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 surefireProperties)Whether this provider should be enabled for the given test bundle classpath and surefire properties.
-
-
-
Field Detail
-
TESTNG_BSN
private static final java.lang.String TESTNG_BSN
- See Also:
- Constant Field Values
-
VERSION
private static final org.osgi.framework.Version VERSION
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from interface:TestFrameworkProviderThe test framework type, such as junit or testng- Specified by:
getTypein interfaceTestFrameworkProvider
-
getVersion
public org.osgi.framework.Version getVersion()
Description copied from interface:TestFrameworkProviderThe test framework version. If several providers of the same type are enabled, the one with the highest version wins.- Specified by:
getVersionin interfaceTestFrameworkProvider
-
getSurefireProviderClassName
public java.lang.String getSurefireProviderClassName()
Description copied from interface:TestFrameworkProviderFully qualified class name of the surefire provider (must implement contract http://maven.apache.org/plugins/maven-surefire-plugin/api.html ).- Specified by:
getSurefireProviderClassNamein interfaceTestFrameworkProvider
-
isEnabled
public boolean isEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties surefireProperties)
Description copied from interface:TestFrameworkProviderWhether this provider should be enabled for the given test bundle classpath and surefire properties.- Specified by:
isEnabledin interfaceTestFrameworkProvider- Parameters:
testBundleClassPath- classpath of the test bundlesurefireProperties- surefire provider properties
-
getRequiredBundles
public java.util.List<org.apache.maven.model.Dependency> getRequiredBundles()
Description copied from interface:TestFrameworkProviderThe 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.- Specified by:
getRequiredBundlesin interfaceTestFrameworkProvider
-
getProviderSpecificProperties
public java.util.Properties getProviderSpecificProperties()
Description copied from interface:TestFrameworkProviderProvider specific properties that are added to the generic test properties. Implementations must not return null.- Specified by:
getProviderSpecificPropertiesin interfaceTestFrameworkProvider- Returns:
-
-