public abstract class AbstractConfigurableOsgiTests extends AbstractOsgiTests
OsgiPlatform.
This class offers more hooks for programmatic and declarative configuration
of the underlying OSGi platform used when running the test suite.| Modifier and Type | Field and Description |
|---|---|
static String |
OSGI_FRAMEWORK_SELECTOR
System property for selecting the appropriate OSGi implementation.
|
resourceLoaderbundleContextAUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NOapplicationContextlogger| Constructor and Description |
|---|
AbstractConfigurableOsgiTests()
Default constructor.
|
AbstractConfigurableOsgiTests(String name)
Constructs a new
AbstractConfigurableOsgiTests instance. |
| Modifier and Type | Method and Description |
|---|---|
protected OsgiPlatform |
createPlatform()
Creates (and configures) the OSGi platform.
|
protected List<String> |
getBootDelegationPackages()
Returns the list of OSGi packages that are delegated to the boot
classpath.
|
protected String |
getPlatformName()
Indicates what OSGi platform should be used by the test suite.
|
getTestBundles, getTestFrameworkBundles, postProcessBundleContext, preProcessBundleContext, run, runBarecreateApplicationContext, isContextKeyEmptygetAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariablescontextKey, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, onSetUp, onTearDown, prepareApplicationContext, setDirty, setUp, tearDownaddContext, contextKeyString, getContext, hasCachedContext, setDirtygetDisabledTestCount, isDisabledInThisEnvironment, recordDisabledassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runTest, setName, toStringpublic static final String OSGI_FRAMEWORK_SELECTOR
public AbstractConfigurableOsgiTests()
AbstractConfigurableOsgiTests instance.public AbstractConfigurableOsgiTests(String name)
AbstractConfigurableOsgiTests instance.name - test nameprotected OsgiPlatform createPlatform()
getPlatformName, falling back to
Equinox in case of a failure.createPlatform in class AbstractOsgiTestsfor an easier alternative.protected String getPlatformName()
OSGI_FRAMEWORK_SELECTOR system property is used.
Subclasses can override this and provide directly the OSGi platform name.
By default, the platform name holds the fully qualified name of the OSGi
platform class.Platformsprotected List<String> getBootDelegationPackages()
Copyright © 2006–2023. All rights reserved.