org.springframework.osgi.test
Class AbstractConfigurableOsgiTests
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.osgi.test.AbstractOptionalDependencyInjectionTests
org.springframework.osgi.test.AbstractOsgiTests
org.springframework.osgi.test.AbstractConfigurableOsgiTests
- All Implemented Interfaces:
- Test, org.springframework.osgi.internal.test.OsgiJUnitTest
- Direct Known Subclasses:
- AbstractSynchronizedOsgiTests
public abstract class AbstractConfigurableOsgiTests
- extends AbstractOsgiTests
Abstract JUnit super class which configures an OsgiPlatform
.
This class offers more hooks for programmatic and declarative configuration
of the underlying OSGi platform used when running the test suite.
- Author:
- Costin Leau
Fields inherited from interface org.springframework.osgi.internal.test.OsgiJUnitTest |
FOR_OSGI, FROM_OSGI, OSGI_TEST, OSGI_TEST_BUNDLE_ID |
Methods inherited from class org.springframework.osgi.test.AbstractOsgiTests |
getBundleContext, getBundleLocations, getBundles, getMandatoryBundles, getResourceLoader, getTestBundles, getTestFrameworkBundles, injectBundleContext, injectOsgiJUnitTest, osgiRunTest, osgiSetUp, osgiTearDown, postProcessBundleContext, preProcessBundleContext, run, runBare, setName |
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
contextKey, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, onSetUp, onTearDown, setDirty, setUp, tearDown |
Methods inherited from class junit.framework.Assert |
assertEquals, 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, fail, fail, failNotEquals, failNotSame, failSame |
OSGI_FRAMEWORK_SELECTOR
public static final String OSGI_FRAMEWORK_SELECTOR
- System property for selecting the appropriate OSGi implementation.
- See Also:
- Constant Field Values
AbstractConfigurableOsgiTests
public AbstractConfigurableOsgiTests()
AbstractConfigurableOsgiTests
public AbstractConfigurableOsgiTests(String name)
createPlatform
protected OsgiPlatform createPlatform()
- OSGi platform creation. This method is used to determine and create the
OSGi platform used by the test suite (Equinox by default). See
getPlatformName()
for an easier alternative.
- Specified by:
createPlatform
in class AbstractOsgiTests
- Returns:
- the OSGi platform
getPlatformName
protected String getPlatformName()
- Indicate what OSGi platform to be used by the test suite. By default,
OSGI_FRAMEWORK_SELECTOR
system property is used. Subclasses can
override this and provide directly the OSGi platform name.
- Returns:
- platform
- See Also:
Platforms
getBootDelegationPackages
protected List getBootDelegationPackages()
- List of OSGi packages that are delegated to the boot classpath. See the
OSGi specification regarding the format of the package string
representation.
- Returns:
- the list of strings representing the packages that the OSGi
platform will delegate to the boot class path.
Copyright © 2006-2007 Spring Framework. All Rights Reserved.