com.atlassian.plugin.osgi
Class PluginInContainerTestBase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.plugin.osgi.PluginInContainerTestBase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- FrameworkRestartTestBase, TestApplicationContextPreProcessor, TestClassLoaderEdgeCases, TestContextClassLoader, TestDynamicPluginModule, TestEnableDisablePlugin, TestOsgiPluginInstalledHelperGetRequiredPluginsFromExports, TestPluginDependencies, TestPluginFrameworkWarmRestart, TestPluginInstall, TestPluginModuleCreation, TestPluginSpringInteraction, TestPluginWithJaxp, TestShutdown
public abstract class PluginInContainerTestBase
- extends junit.framework.TestCase
Base for in-container unit tests
|
Method Summary |
protected com.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer |
createHostContainer(Map<Class<?>,Object> originalContext)
|
protected void |
initBundlingPluginManager(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
File... bundledPluginJars)
|
protected void |
initPluginManager()
|
protected void |
initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider)
|
protected void |
initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
|
protected void |
initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
String version)
|
protected void |
initPluginManager(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
com.atlassian.plugin.loaders.PluginLoader loader)
|
void |
setUp()
|
void |
tearDown()
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| 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 |
osgiContainerManager
protected com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager
tmpDir
protected File tmpDir
cacheDir
protected File cacheDir
pluginsDir
protected File pluginsDir
moduleDescriptorFactory
protected com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory
pluginManager
protected com.atlassian.plugin.manager.DefaultPluginManager pluginManager
pluginEventManager
protected com.atlassian.plugin.event.PluginEventManager pluginEventManager
moduleFactory
protected com.atlassian.plugin.module.ModuleFactory moduleFactory
hostContainer
protected com.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer hostContainer
PluginInContainerTestBase
public PluginInContainerTestBase()
setUp
public void setUp()
throws Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
Exception
createHostContainer
protected com.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer createHostContainer(Map<Class<?>,Object> originalContext)
tearDown
public void tearDown()
throws Exception
- Overrides:
tearDown in class junit.framework.TestCase
- Throws:
Exception
initPluginManager
protected void initPluginManager()
throws Exception
- Throws:
Exception
initPluginManager
protected void initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider)
throws Exception
- Throws:
Exception
initPluginManager
protected void initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
String version)
throws Exception
- Throws:
Exception
initPluginManager
protected void initPluginManager(com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider hostComponentProvider,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
throws Exception
- Throws:
Exception
initPluginManager
protected void initPluginManager(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
com.atlassian.plugin.loaders.PluginLoader loader)
throws Exception
- Throws:
Exception
initBundlingPluginManager
protected void initBundlingPluginManager(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
File... bundledPluginJars)
throws Exception
- Throws:
Exception
Copyright © 2011 Atlassian. All Rights Reserved.