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.VersionRangegetJUnitVersionRange()java.util.PropertiesgetProviderSpecificProperties()Provider specific properties that are added to the generic test properties.java.lang.StringgetType()The test framework type, such as junit or testngbooleanisEnabled(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:TestFrameworkProviderThe test framework type, such as junit or testng- Specified by:
getTypein 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
-
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:
-
getJUnitVersionRange
protected abstract org.osgi.framework.VersionRange getJUnitVersionRange()
-
getJUnitBundleNames
protected abstract java.util.Set<java.lang.String> getJUnitBundleNames()
-
-