com.atlassian.plugin.manager
Class TestEnabledModuleCachingPluginAccessor

java.lang.Object
  extended by com.atlassian.plugin.manager.TestDefaultPluginManager
      extended by com.atlassian.plugin.manager.TestEnabledModuleCachingPluginAccessor

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.DisabledPluginCounter, 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
expectedException, manager, pluginEventManager
 
Constructor Summary
TestEnabledModuleCachingPluginAccessor()
           
 
Method Summary
protected  PluginAccessor getPluginAccessor()
           
protected  DefaultPluginManager newDefaultPluginManager(PluginLoader... pluginLoaders)
           
 void setUpMocks()
           
 void testChildAndParentClassBeingTrackedSeparately()
           
 void testDelegateShouldCalculateAtMostOnce()
           
 void testFlushCacheAfterAnyPluginDisable()
           
 
Methods inherited from class com.atlassian.plugin.manager.TestDefaultPluginManager
createPluginWithVersion, delayedPluginsAreDelayed, earlyLateStartupEvents, oldPluginReturnedByLoadFoundPluginsIsDiscarded, pluginReturnedByLoadAllPluginsButNotUsedIsDiscarded, scanForNewPluginsNotAllowedUntilFullyStarted, setUp, tearDown, testAddPluginsThatThrowExceptionOnEnabled, testCannotInitTwice, testCannotRemovePluginFromStaticLoader, testCannotShutdownTwice, testChangedSnapshotVersionIsLoaded, testCircularDependencyWouldNotCauseInfiniteLoop, testComparePluginBadPlugin, testComparePluginEqual, testComparePluginNewer, testComparePluginNoVersion, testComparePluginOlder, testDisableEnableOfPluginThatRequiresRestart, testDisablePluginModuleWithCannotDisableAnnotation, testDisablePluginModuleWithCannotDisableAnnotationInSuperclass, testDuplicatePluginKeysAreIgnored, testDuplicateSnapshotVersionsAreNotLoaded, testEnabledDisabledRetrieval, testEnabledModuleOutOfSyncWithPlugin, testEnableModuleFailed, testExceptionOnRequiredPluginNotEnabling, testFindingNewPlugins, testFindingNewPluginsNotLoadingRestartRequiredDescriptors, testFindingUpgradePluginsNotLoadingRestartRequiredDescriptors, testGetDynamicPluginClass, testGetEnabledPluginsDoesNotReturnEnablingPlugins, testGetModuleByModuleClassAndDescriptor, testGetModuleByModuleClassNoneFound, testGetModuleByModuleClassOneFound, testGetModuleDescriptorsByType, testGetPluginAndModules, testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate, testGetPluginModuleDescriptorWithModuleMatchingPredicate, testGetPluginModulesWith2GetModulesThrowingExceptionOnlyNotifiesOnce, testGetPluginModulesWithGetModuleThrowingException, testGetPluginModulesWithModuleMatchingPredicate, testGetPluginModulesWithModuleNotMatchingPredicate, testGetPluginsWithPluginMatchingPluginPredicate, testGetPluginsWithPluginNotMatchingPluginPredicate, testGetPluginWithNullKey, testInstallPlugin, testInstallPluginMoreThanOnceStaysAsInstall, testInstallPluginsWithOne, testInstallPluginsWithTwo, testInstallPluginsWithTwoButOneFailsValidation, testInstallPluginsWithTwoButOneFailsValidationWithException, testInstallPluginThatPreviouslyRequiredRestart, testInstallPluginThatRequiresRestart, testInstallPluginThatRequiresRestartThenRevert, testInstallTwoPluginsButOneFailsToEnableAModuleAndThenFailsToDisableAModule, testInvalidationOfDynamicClassCache, testInvalidationOfDynamicResourceCache, testLoadChangedDynamicPluginWithSameVersionNumberDoesNotReplaceExisting, testLoadNewerDuplicateDynamicPluginPreservesModuleState, testLoadNewerDuplicateDynamicPluginPreservesPluginState, testLoadNewerDuplicatePlugin, testLoadOlderDuplicatePlugin, testLoadOlderDuplicatePluginDoesNotTryToEnableIt, testNonDeletablePlugins, testNonRemovablePlugins, testPluginContainerUnavailable, testPluginModuleAvailableAfterInstallation, testPluginModuleAvailableAfterInstallationButConfiguredToBeDisabled, testPluginModuleUnavailableAfterInstallation, testRemovePluginThatRequiresRestart, testRemovePluginThatRequiresRestartThenReverted, testRemovePluginThatRequiresRestartViaSubclass, testRemovingPlugins, testRetrievePlugins, testRetrievingDynamicResources, testShutdownHandlesException, testThreeCycleDependencyWouldNotCauseInfiniteLoop, testUninstallPluginClearsState, testUninstallPluginWithDependencies, testUninstallPluginWithMultiLevelDependencies, testUpgradePluginThatPreviouslyRequiredRestart, testUpgradePluginThatRequiresRestart, testUpgradePluginThatRequiresRestartMultipleTimeStaysUpgraded, testUpgradePluginThatRequiresRestartThenReverted, testUpgradePluginThatRequiresRestartThenRevertedRevertsToOriginalPlugin, testValidatePlugin, testValidatePluginWithNoDynamicLoaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEnabledModuleCachingPluginAccessor

public TestEnabledModuleCachingPluginAccessor()
Method Detail

setUpMocks

public void setUpMocks()
                throws Exception
Throws:
Exception

newDefaultPluginManager

protected DefaultPluginManager newDefaultPluginManager(PluginLoader... pluginLoaders)
Overrides:
newDefaultPluginManager in class TestDefaultPluginManager

getPluginAccessor

protected PluginAccessor getPluginAccessor()
Overrides:
getPluginAccessor in class TestDefaultPluginManager

testDelegateShouldCalculateAtMostOnce

public void testDelegateShouldCalculateAtMostOnce()

testFlushCacheAfterAnyPluginDisable

public void testFlushCacheAfterAnyPluginDisable()

testChildAndParentClassBeingTrackedSeparately

public void testChildAndParentClassBeingTrackedSeparately()


Copyright © 2014 Atlassian. All rights reserved.