com.atlassian.plugin.manager
Class TestEnabledModuleCachingPluginAccessor

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
              extended by com.atlassian.plugin.manager.TestDefaultPluginManager
                  extended by com.atlassian.plugin.manager.TestEnabledModuleCachingPluginAccessor
All Implemented Interfaces:
junit.framework.Test

public class TestEnabledModuleCachingPluginAccessor
extends TestDefaultPluginManager


Nested Class Summary
 class TestEnabledModuleCachingPluginAccessor.DummyChildDescriptor
           
 class TestEnabledModuleCachingPluginAccessor.DummyParentDescriptor
           
 
Nested classes/interfaces inherited from class com.atlassian.plugin.manager.TestDefaultPluginManager
TestDefaultPluginManager.MyModuleDisabledListener, TestDefaultPluginManager.PluginDisabledListener, TestDefaultPluginManager.PluginModuleDisabledListener, TestDefaultPluginManager.PluginModuleEnabledListener, TestDefaultPluginManager.RequiresRestartModuleDescriptor, TestDefaultPluginManager.RequiresRestartSubclassModuleDescriptor, TestDefaultPluginManager.ThingsAreWrongListener
 
Field Summary
 
Fields inherited from class com.atlassian.plugin.manager.TestDefaultPluginManager
manager, pluginEventManager
 
Fields inherited from class com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
PADDINGTON_JAR, pluginsDirectory, pluginsTestDir, POOH_JAR
 
Constructor Summary
TestEnabledModuleCachingPluginAccessor()
           
 
Method Summary
protected  com.atlassian.plugin.PluginAccessor getPluginAccessor()
           
protected  void setUp()
           
 void testChildAndParentClassBeingTrackedSeparately()
           
 void testDelegateShouldCalculateAtMostOnce()
           
 void testFlushCacheAfterAnyPluginDisable()
           
 
Methods inherited from class com.atlassian.plugin.manager.TestDefaultPluginManager
createPluginWithVersion, tearDown, testAddPluginsThatThrowExceptionOnEnabled, testCannotInitTwice, testCannotRemovePluginFromStaticLoader, testCannotShutdownTwice, testComparePluginBadPlugin, testComparePluginEqual, testComparePluginNewer, testComparePluginNoVersion, testComparePluginOlder, testDisableEnableOfPluginThatRequiresRestart, testDisablePluginModuleWithCannotDisableAnnotation, testDisablePluginModuleWithCannotDisableAnnotationinSuperclass, testDuplicatePluginKeysAreBad, testEnabledDisabledRetrieval, testEnabledModuleOutOfSyncWithPlugin, testEnableModuleFailed, testExceptionOnRequiredPluginNotEnabling, testFindingNewPlugins, testFindingNewPluginsNotLoadingRestartRequiredDescriptors, testFindingUpgradePluginsNotLoadingRestartRequiredDescriptors, testGetDynamicPluginClass, testGetEnabledPluginsDoesNotReturnEnablingPlugins, testGetModuleByModuleClassAndDescriptor, testGetModuleByModuleClassNoneFound, testGetModuleByModuleClassOneFound, testGetModuleDescriptorsByType, testGetPluginAndModules, testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate, testGetPluginModuleDescriptorWithModuleMatchingPredicate, testGetPluginModulesWithGetModuleThrowingException, testGetPluginModulesWithModuleMatchingPredicate, testGetPluginModulesWithModuleNotMatchingPredicate, testGetPluginsWithPluginMatchingPluginPredicate, testGetPluginsWithPluginNotMatchingPluginPredicate, testGetPluginWithNullKey, testInstallPlugin, testInstallPluginMoreThanOnceStaysAsInstall, testInstallPluginsWithOne, testInstallPluginsWithTwo, testInstallPluginsWithTwoButOneFailsValidation, testInstallPluginsWithTwoButOneFailsValidationWithException, testInstallPluginThatPreviouslyRequiredRestart, testInstallPluginThatRequiresRestart, testInstallPluginThatRequiresRestartThenRevert, testInvalidationOfDynamicClassCache, testInvalidationOfDynamicResourceCache, testLoadChangedDynamicPluginWithSameVersionNumberReplacesExisting, testLoadNewerDuplicateDynamicPluginPreservesModuleState, testLoadNewerDuplicateDynamicPluginPreservesPluginState, testLoadNewerDuplicatePlugin, testLoadOlderDuplicatePlugin, testLoadOlderDuplicatePluginDoesNotTryToEnableIt, testNonDeletablePlugins, testNonRemovablePlugins, testPluginContainerUnavailable, testPluginModuleAvailableAfterInstallation, testPluginModuleAvailableAfterInstallationButConfiguredToBeDisabled, testPluginModuleUnavailableAfterInstallation, testRemovePluginThatRequiresRestart, testRemovePluginThatRequiresRestartThenReverted, testRemovePluginThatRequiresRestartViaSubclass, testRemovingPlugins, testRetrievePlugins, testRetrievingDynamicResources, testShutdownHandlesException, testUninstallPluginClearsState, testUninstallPluginWithDependencies, testUpgradePluginThatPreviouslyRequiredRestart, testUpgradePluginThatRequiresRestart, testUpgradePluginThatRequiresRestartMultipleTimeStaysUpgraded, testUpgradePluginThatRequiresRestartThenReverted, testUpgradePluginThatRequiresRestartThenRevertedRevertsToOriginalPlugin, testValidatePlugin, testValidatePluginWithNoDynamicLoaders
 
Methods inherited from class com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
createFillAndCleanTempPluginDirectory, getPluginsDirectory
 
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
 

Constructor Detail

TestEnabledModuleCachingPluginAccessor

public TestEnabledModuleCachingPluginAccessor()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestDefaultPluginManager
Throws:
Exception

getPluginAccessor

protected com.atlassian.plugin.PluginAccessor getPluginAccessor()
Overrides:
getPluginAccessor in class TestDefaultPluginManager

testDelegateShouldCalculateAtMostOnce

public void testDelegateShouldCalculateAtMostOnce()

testFlushCacheAfterAnyPluginDisable

public void testFlushCacheAfterAnyPluginDisable()

testChildAndParentClassBeingTrackedSeparately

public void testChildAndParentClassBeingTrackedSeparately()


Copyright © 2011 Atlassian. All Rights Reserved.