public class TestDefaultPluginManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestDefaultPluginManager.DisabledPluginCounter |
static class |
TestDefaultPluginManager.MyModuleDisabledListener |
static class |
TestDefaultPluginManager.PluginDisabledListener |
static class |
TestDefaultPluginManager.PluginModuleDisabledListener |
static class |
TestDefaultPluginManager.PluginModuleEnabledListener |
static class |
TestDefaultPluginManager.RequiresRestartModuleDescriptor |
static class |
TestDefaultPluginManager.RequiresRestartSubclassModuleDescriptor |
static class |
TestDefaultPluginManager.ThingsAreWrongListener |
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
protected DefaultPluginManager |
manager
the object being tested
|
protected PluginEventManager |
pluginEventManager |
| Constructor and Description |
|---|
TestDefaultPluginManager() |
public org.junit.rules.ExpectedException expectedException
protected DefaultPluginManager manager
protected PluginEventManager pluginEventManager
protected DefaultPluginManager newDefaultPluginManager(PluginLoader... pluginLoaders)
protected PluginAccessor getPluginAccessor()
public void testRetrievePlugins()
throws PluginParseException
PluginParseExceptionpublic void testEnableModuleFailed()
throws PluginParseException
PluginParseExceptionpublic void testEnabledModuleOutOfSyncWithPlugin()
throws PluginParseException
PluginParseExceptionpublic void testDisablePluginModuleWithCannotDisableAnnotation()
public void testDisablePluginModuleWithCannotDisableAnnotationInSuperclass()
public void testEnabledDisabledRetrieval()
throws PluginParseException
PluginParseExceptionpublic void testDuplicatePluginKeysAreIgnored()
throws PluginParseException
PluginParseExceptionpublic void testDuplicateSnapshotVersionsAreNotLoaded()
throws PluginParseException
PluginParseExceptionpublic void testChangedSnapshotVersionIsLoaded()
throws PluginParseException
PluginParseExceptionpublic void testLoadOlderDuplicatePlugin()
public void testLoadOlderDuplicatePluginDoesNotTryToEnableIt()
public void testLoadNewerDuplicatePlugin()
public void testLoadNewerDuplicateDynamicPluginPreservesPluginState()
throws PluginParseException
PluginParseExceptionpublic void testLoadNewerDuplicateDynamicPluginPreservesModuleState()
throws PluginParseException
PluginParseExceptionpublic void testLoadChangedDynamicPluginWithSameVersionNumberDoesNotReplaceExisting()
throws PluginParseException
PluginParseExceptionpublic void testGetPluginsWithPluginMatchingPluginPredicate()
throws Exception
Exceptionpublic void testGetPluginsWithPluginNotMatchingPluginPredicate()
throws Exception
Exceptionpublic void testGetPluginModulesWithModuleMatchingPredicate()
throws Exception
Exceptionpublic void testGetPluginModulesWithGetModuleThrowingException()
throws Exception
Exceptionpublic void testGetPluginModulesWith2GetModulesThrowingExceptionOnlyNotifiesOnce()
throws Exception
Exceptionpublic void testGetPluginModulesWithModuleNotMatchingPredicate()
throws Exception
Exceptionpublic void testGetPluginModuleDescriptorWithModuleMatchingPredicate()
throws Exception
Exceptionpublic void testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate()
throws Exception
Exceptionpublic void testGetPluginAndModules()
throws PluginParseException
PluginParseExceptionpublic void testGetModuleByModuleClassOneFound()
throws PluginParseException
PluginParseExceptionpublic void testGetModuleByModuleClassAndDescriptor()
throws PluginParseException
PluginParseExceptionpublic void testGetModuleByModuleClassNoneFound()
throws PluginParseException
PluginParseExceptionpublic void testGetModuleDescriptorsByType()
throws PluginParseException
PluginParseExceptionpublic void testRetrievingDynamicResources()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testGetDynamicPluginClass()
throws IOException,
PluginParseException
IOExceptionPluginParseExceptionpublic void testGetEnabledPluginsDoesNotReturnEnablingPlugins()
throws Exception
Exceptionpublic void testFindingNewPlugins()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testFindingNewPluginsNotLoadingRestartRequiredDescriptors()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testFindingUpgradePluginsNotLoadingRestartRequiredDescriptors()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testInstallPluginThatRequiresRestart()
throws PluginParseException,
IOException,
InterruptedException
public void testInstallPluginThatRequiresRestartThenRevert()
throws PluginParseException,
IOException,
InterruptedException
public void testUpgradePluginThatRequiresRestart()
throws PluginParseException,
IOException,
InterruptedException
public void testUpgradePluginThatRequiresRestartThenReverted()
throws PluginParseException,
IOException,
InterruptedException
public void testUpgradePluginThatRequiresRestartThenRevertedRevertsToOriginalPlugin()
throws PluginParseException,
IOException,
InterruptedException
public void testUpgradePluginThatRequiresRestartMultipleTimeStaysUpgraded()
throws PluginParseException,
IOException,
InterruptedException
public void testUpgradePluginThatPreviouslyRequiredRestart()
throws PluginParseException,
IOException,
InterruptedException
public void testInstallPluginThatPreviouslyRequiredRestart()
throws PluginParseException,
IOException,
InterruptedException
public void testInstallPluginMoreThanOnceStaysAsInstall()
throws PluginParseException,
IOException,
InterruptedException
public void testRemovePluginThatRequiresRestart()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testRemovePluginThatRequiresRestartThenReverted()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testRemovePluginThatRequiresRestartViaSubclass()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testDisableEnableOfPluginThatRequiresRestart()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testCannotRemovePluginFromStaticLoader()
throws PluginParseException,
IOException
PluginParseExceptionIOExceptionpublic void testRemovingPlugins()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testPluginModuleAvailableAfterInstallation()
public void testPluginModuleAvailableAfterInstallationButConfiguredToBeDisabled()
public void testPluginModuleUnavailableAfterInstallation()
public void testPluginContainerUnavailable()
public void testUninstallPluginWithDependencies()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testUninstallPluginWithMultiLevelDependencies()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testCircularDependencyWouldNotCauseInfiniteLoop()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testThreeCycleDependencyWouldNotCauseInfiniteLoop()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testNonRemovablePlugins()
throws PluginParseException
PluginParseExceptionpublic void testNonDeletablePlugins()
throws PluginException,
IOException
PluginExceptionIOExceptionpublic void testComparePluginNewer()
public void testComparePluginOlder()
public void testComparePluginEqual()
public void testComparePluginNoVersion()
public void testComparePluginBadPlugin()
public void testInvalidationOfDynamicResourceCache()
throws IOException,
PluginException
IOExceptionPluginExceptionpublic void testValidatePlugin()
throws PluginParseException
PluginParseExceptionpublic void testValidatePluginWithNoDynamicLoaders()
throws PluginParseException
PluginParseExceptionpublic void testInvalidationOfDynamicClassCache()
throws IOException,
PluginException
IOExceptionPluginExceptionpublic void testInstallPluginsWithOne()
public void testInstallPluginsWithTwo()
public void testInstallPluginsWithTwoButOneFailsValidation()
public void testInstallPluginsWithTwoButOneFailsValidationWithException()
public void testInstallTwoPluginsButOneFailsToEnableAModuleAndThenFailsToDisableAModule()
public void testAddPluginsThatThrowExceptionOnEnabled()
throws Exception
Exceptionpublic void testUninstallPluginClearsState()
throws IOException
IOExceptionpublic void testCannotInitTwice()
throws PluginParseException
PluginParseExceptionpublic void testCannotShutdownTwice()
throws PluginParseException
PluginParseExceptionpublic void testGetPluginWithNullKey()
public void testShutdownHandlesException()
public void testExceptionOnRequiredPluginNotEnabling()
throws Exception
Exceptionpublic void pluginReturnedByLoadAllPluginsButNotUsedIsDiscarded()
public void oldPluginReturnedByLoadFoundPluginsIsDiscarded()
public void earlyLateStartupEvents()
public void delayedPluginsAreDelayed()
public void scanForNewPluginsNotAllowedUntilFullyStarted()
Copyright © 2014 Atlassian. All rights reserved.