com.atlassian.plugin.osgi
Class PluginInContainerTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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


Field Summary
protected  File cacheDir
           
protected  com.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer hostContainer
           
protected  com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory
           
protected  com.atlassian.plugin.module.ModuleFactory moduleFactory
           
protected  com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager
           
protected  com.atlassian.plugin.event.PluginEventManager pluginEventManager
           
protected  com.atlassian.plugin.manager.DefaultPluginManager pluginManager
           
protected  File pluginsDir
           
protected  File tmpDir
           
 
Constructor Summary
PluginInContainerTestBase()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PluginInContainerTestBase

public PluginInContainerTestBase()
Method Detail

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.