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, TestClassLoaderEdgeCases, TestContextClassLoader, TestDynamicPluginModule, TestEnableDisablePlugin, 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  SimpleConstructorHostContainer hostContainer
           
protected  ModuleDescriptorFactory moduleDescriptorFactory
           
protected  ModuleFactory moduleFactory
           
protected  OsgiContainerManager osgiContainerManager
           
protected  PluginEventManager pluginEventManager
           
protected  DefaultPluginManager pluginManager
           
protected  File pluginsDir
           
protected  File tmpDir
           
 
Constructor Summary
PluginInContainerTestBase()
           
 
Method Summary
protected  SimpleConstructorHostContainer createHostContainer(Map<Class<?>,Object> originalContext)
           
protected  void initBundlingPluginManager(ModuleDescriptorFactory moduleDescriptorFactory, File... bundledPluginJars)
           
protected  void initPluginManager()
           
protected  void initPluginManager(HostComponentProvider hostComponentProvider)
           
protected  void initPluginManager(HostComponentProvider hostComponentProvider, ModuleDescriptorFactory moduleDescriptorFactory)
           
protected  void initPluginManager(HostComponentProvider hostComponentProvider, ModuleDescriptorFactory moduleDescriptorFactory, String version)
           
protected  void initPluginManager(ModuleDescriptorFactory moduleDescriptorFactory, 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 OsgiContainerManager osgiContainerManager

tmpDir

protected File tmpDir

cacheDir

protected File cacheDir

pluginsDir

protected File pluginsDir

moduleDescriptorFactory

protected ModuleDescriptorFactory moduleDescriptorFactory

pluginManager

protected DefaultPluginManager pluginManager

pluginEventManager

protected PluginEventManager pluginEventManager

moduleFactory

protected ModuleFactory moduleFactory

hostContainer

protected 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 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(HostComponentProvider hostComponentProvider)
                          throws Exception
Throws:
Exception

initPluginManager

protected void initPluginManager(HostComponentProvider hostComponentProvider,
                                 ModuleDescriptorFactory moduleDescriptorFactory,
                                 String version)
                          throws Exception
Throws:
Exception

initPluginManager

protected void initPluginManager(HostComponentProvider hostComponentProvider,
                                 ModuleDescriptorFactory moduleDescriptorFactory)
                          throws Exception
Throws:
Exception

initPluginManager

protected void initPluginManager(ModuleDescriptorFactory moduleDescriptorFactory,
                                 PluginLoader loader)
                          throws Exception
Throws:
Exception

initBundlingPluginManager

protected void initBundlingPluginManager(ModuleDescriptorFactory moduleDescriptorFactory,
                                         File... bundledPluginJars)
                                  throws Exception
Throws:
Exception


Copyright © 2010 Atlassian. All Rights Reserved.