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
- 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
Method Summary |
protected OsgiPlatform |
createPlatform()
Creates (and configures) the OSGi platform.
This implementation determines and creates the OSGi platform used by
the test suite (Equinox by default). |
protected List |
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. |
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
contextKey, createBeanDefinitionReader, 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()
- Default constructor. Constructs a new
AbstractConfigurableOsgiTests
instance.
AbstractConfigurableOsgiTests
public AbstractConfigurableOsgiTests(String name)
- Constructs a new
AbstractConfigurableOsgiTests
instance.
- Parameters:
name
- test name
createPlatform
protected OsgiPlatform createPlatform()
- Creates (and configures) the OSGi platform.
This implementation determines and creates the OSGi platform used by
the test suite (Equinox by default). It will try to create a Platform
instance based on the
getPlatformName
, falling back to
Equinox in case of a failure.
- Specified by:
createPlatform
in class AbstractOsgiTests
- Returns:
- OSGi platform instance
- See Also:
for an easier alternative.
getPlatformName
protected String getPlatformName()
- Indicates what OSGi platform should 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.
By default, the platform name holds the fully qualified name of the OSGi
platform class.
- Returns:
- platform platform name
- See Also:
Platforms
getBootDelegationPackages
protected List getBootDelegationPackages()
- Returns the 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-2008 Spring Framework. All Rights Reserved.