org.springframework.osgi.test
Class AbstractOptionalDependencyInjectionTests
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
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- AbstractOsgiTests
public abstract class AbstractOptionalDependencyInjectionTests
- extends AbstractDependencyInjectionSpringContextTests
JUnit superclass, which creates an empty OSGi bundle appCtx when no
configuration file is specified. Required for mixing Spring existing testing
hierarchy with the OSGi testing framework functionality.
- Author:
- Costin Leau
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 |
bundleContext
protected BundleContext bundleContext
AbstractOptionalDependencyInjectionTests
public AbstractOptionalDependencyInjectionTests()
- Default constructor. Constructs a new
AbstractOptionalDependencyInjectionTests
instance.
AbstractOptionalDependencyInjectionTests
public AbstractOptionalDependencyInjectionTests(String name)
- Constructs a new
AbstractOptionalDependencyInjectionTests
instance.
- Parameters:
name
- test name
isContextKeyEmpty
protected boolean isContextKeyEmpty(Object key)
- Overrides:
isContextKeyEmpty
in class AbstractSpringContextTests
createApplicationContext
protected ConfigurableApplicationContext createApplicationContext(String[] locations)
-
This implementation will create an empty bundle context in case no
locations are specified.
- Overrides:
createApplicationContext
in class AbstractSingleSpringContextTests
Copyright � 2006-2008 Spring Framework. All Rights Reserved.