Class AbstractJUnitProvider
- java.lang.Object
-
- org.eclipse.tycho.surefire.provider.impl.AbstractJUnitProvider
-
- All Implemented Interfaces:
TestFrameworkProvider
- Direct Known Subclasses:
JUnit3Provider
,JUnit47Provider
,JUnit4Provider
,JUnit5Provider
public abstract class AbstractJUnitProvider extends java.lang.Object implements TestFrameworkProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractJUnitProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.Set<java.lang.String>
getJUnitBundleNames()
protected abstract org.osgi.framework.VersionRange
getJUnitVersionRange()
java.util.Properties
getProviderSpecificProperties()
Provider specific properties that are added to the generic test properties.java.lang.String
getType()
The test framework type, such as junit or testngboolean
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.tycho.surefire.provider.spi.TestFrameworkProvider
getRequiredBundles, getSurefireProviderClassName, getVersion
-
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from interface:TestFrameworkProvider
The test framework type, such as junit or testng- Specified by:
getType
in interfaceTestFrameworkProvider
-
isEnabled
public boolean isEnabled(java.util.List<ClasspathEntry> testBundleClassPath, java.util.Properties surefireProperties)
Description copied from interface:TestFrameworkProvider
Whether this provider should be enabled for the given test bundle classpath and surefire properties.- Specified by:
isEnabled
in interfaceTestFrameworkProvider
- Parameters:
testBundleClassPath
- classpath of the test bundlesurefireProperties
- surefire provider properties
-
getProviderSpecificProperties
public java.util.Properties getProviderSpecificProperties()
Description copied from interface:TestFrameworkProvider
Provider specific properties that are added to the generic test properties. Implementations must not return null.- Specified by:
getProviderSpecificProperties
in interfaceTestFrameworkProvider
- Returns:
-
getJUnitVersionRange
protected abstract org.osgi.framework.VersionRange getJUnitVersionRange()
-
getJUnitBundleNames
protected abstract java.util.Set<java.lang.String> getJUnitBundleNames()
-
-