com.atlassian.plugin.manager
Class TestDefaultPluginManager
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
com.atlassian.plugin.manager.TestDefaultPluginManager
- All Implemented Interfaces:
- junit.framework.Test
public class TestDefaultPluginManager
- extends AbstractTestClassLoader
| 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 |
TestDefaultPluginManager
public TestDefaultPluginManager()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown in class junit.framework.TestCase
- Throws:
java.lang.Exception
testRetrievePlugins
public void testRetrievePlugins()
throws PluginParseException
- Throws:
PluginParseException
testEnableModuleFailed
public void testEnableModuleFailed()
throws PluginParseException
- Throws:
PluginParseException
testEnabledModuleOutOfSyncWithPlugin
public void testEnabledModuleOutOfSyncWithPlugin()
throws PluginParseException
- Throws:
PluginParseException
testDisablePluginModuleWithCannotDisableAnnotation
public void testDisablePluginModuleWithCannotDisableAnnotation()
testDisablePluginModuleWithCannotDisableAnnotationinSuperclass
public void testDisablePluginModuleWithCannotDisableAnnotationinSuperclass()
testEnabledDisabledRetrieval
public void testEnabledDisabledRetrieval()
throws PluginParseException
- Throws:
PluginParseException
testDuplicatePluginKeysAreBad
public void testDuplicatePluginKeysAreBad()
throws PluginParseException
- Throws:
PluginParseException
testLoadOlderDuplicatePlugin
public void testLoadOlderDuplicatePlugin()
throws PluginParseException
- Throws:
PluginParseException
testLoadOlderDuplicatePluginDoesNotTryToEnableIt
public void testLoadOlderDuplicatePluginDoesNotTryToEnableIt()
testLoadNewerDuplicatePlugin
public void testLoadNewerDuplicatePlugin()
throws PluginParseException
- Throws:
PluginParseException
testLoadNewerDuplicateDynamicPluginPreservesPluginState
public void testLoadNewerDuplicateDynamicPluginPreservesPluginState()
throws PluginParseException
- Throws:
PluginParseException
testLoadNewerDuplicateDynamicPluginPreservesModuleState
public void testLoadNewerDuplicateDynamicPluginPreservesModuleState()
throws PluginParseException
- Throws:
PluginParseException
testLoadChangedDynamicPluginWithSameVersionNumberReplacesExisting
public void testLoadChangedDynamicPluginWithSameVersionNumberReplacesExisting()
throws PluginParseException
- Throws:
PluginParseException
testGetPluginsWithPluginMatchingPluginPredicate
public void testGetPluginsWithPluginMatchingPluginPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginsWithPluginNotMatchingPluginPredicate
public void testGetPluginsWithPluginNotMatchingPluginPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginModulesWithModuleMatchingPredicate
public void testGetPluginModulesWithModuleMatchingPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginModulesWithGetModuleThrowingException
public void testGetPluginModulesWithGetModuleThrowingException()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginModulesWithModuleNotMatchingPredicate
public void testGetPluginModulesWithModuleNotMatchingPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginModuleDescriptorWithModuleMatchingPredicate
public void testGetPluginModuleDescriptorWithModuleMatchingPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate
public void testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetPluginAndModules
public void testGetPluginAndModules()
throws PluginParseException
- Throws:
PluginParseException
testGetModuleByModuleClassOneFound
public void testGetModuleByModuleClassOneFound()
throws PluginParseException
- Throws:
PluginParseException
testGetModuleByModuleClassAndDescriptor
public void testGetModuleByModuleClassAndDescriptor()
throws PluginParseException
- Throws:
PluginParseException
testGetModuleByModuleClassNoneFound
public void testGetModuleByModuleClassNoneFound()
throws PluginParseException
- Throws:
PluginParseException
testGetModuleDescriptorsByType
public void testGetModuleDescriptorsByType()
throws PluginParseException
- Throws:
PluginParseException
testRetrievingDynamicResources
public void testRetrievingDynamicResources()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testGetDynamicPluginClass
public void testGetDynamicPluginClass()
throws java.io.IOException,
PluginParseException
- Throws:
java.io.IOException
PluginParseException
testFindingNewPlugins
public void testFindingNewPlugins()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testFindingNewPluginsNotLoadingRestartRequiredDescriptors
public void testFindingNewPluginsNotLoadingRestartRequiredDescriptors()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testFindingUpgradePluginsNotLoadingRestartRequiredDescriptors
public void testFindingUpgradePluginsNotLoadingRestartRequiredDescriptors()
throws PluginParseException,
java.io.IOException
- Tests upgrade of plugin where the old version didn't have any restart required module descriptors, but the new one does
- Throws:
PluginParseException
java.io.IOException
testInstallPluginThatRequiresRestart
public void testInstallPluginThatRequiresRestart()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testInstallPluginThatRequiresRestartThenRevert
public void testInstallPluginThatRequiresRestartThenRevert()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testUpgradePluginThatRequiresRestart
public void testUpgradePluginThatRequiresRestart()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testUpgradePluginThatRequiresRestartThenReverted
public void testUpgradePluginThatRequiresRestartThenReverted()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testUpgradePluginThatRequiresRestartThenRevertedRevertsToOriginalPlugin
public void testUpgradePluginThatRequiresRestartThenRevertedRevertsToOriginalPlugin()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testUpgradePluginThatRequiresRestartMultipleTimeStaysUpgraded
public void testUpgradePluginThatRequiresRestartMultipleTimeStaysUpgraded()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testUpgradePluginThatPreviouslyRequiredRestart
public void testUpgradePluginThatPreviouslyRequiredRestart()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testInstallPluginThatPreviouslyRequiredRestart
public void testInstallPluginThatPreviouslyRequiredRestart()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testInstallPluginMoreThanOnceStaysAsInstall
public void testInstallPluginMoreThanOnceStaysAsInstall()
throws PluginParseException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
PluginParseException
java.io.IOException
java.lang.InterruptedException
testRemovePluginThatRequiresRestart
public void testRemovePluginThatRequiresRestart()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testRemovePluginThatRequiresRestartThenReverted
public void testRemovePluginThatRequiresRestartThenReverted()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testRemovePluginThatRequiresRestartViaSubclass
public void testRemovePluginThatRequiresRestartViaSubclass()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testDisableEnableOfPluginThatRequiresRestart
public void testDisableEnableOfPluginThatRequiresRestart()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testCannotRemovePluginFromStaticLoader
public void testCannotRemovePluginFromStaticLoader()
throws PluginParseException,
java.io.IOException
- Throws:
PluginParseException
java.io.IOException
testRemovingPlugins
public void testRemovingPlugins()
throws PluginException,
java.io.IOException
- Throws:
PluginException
java.io.IOException
testPluginModuleAvailableAfterInstallation
public void testPluginModuleAvailableAfterInstallation()
testPluginModuleAvailableAfterInstallationButConfiguredToBeDisabled
public void testPluginModuleAvailableAfterInstallationButConfiguredToBeDisabled()
testPluginModuleUnavailableAfterInstallation
public void testPluginModuleUnavailableAfterInstallation()
testPluginContainerUnavailable
public void testPluginContainerUnavailable()
testUninstallPluginWithDependencies
public void testUninstallPluginWithDependencies()
throws PluginException,
java.io.IOException
- Throws:
PluginException
java.io.IOException
testNonRemovablePlugins
public void testNonRemovablePlugins()
throws PluginParseException
- Throws:
PluginParseException
testNonDeletablePlugins
public void testNonDeletablePlugins()
throws PluginException,
java.io.IOException
- Throws:
PluginException
java.io.IOException
testComparePluginNewer
public void testComparePluginNewer()
testComparePluginOlder
public void testComparePluginOlder()
testComparePluginEqual
public void testComparePluginEqual()
testComparePluginNoVersion
public void testComparePluginNoVersion()
testComparePluginBadPlugin
public void testComparePluginBadPlugin()
testInvalidationOfDynamicResourceCache
public void testInvalidationOfDynamicResourceCache()
throws java.io.IOException,
PluginException
- Throws:
java.io.IOException
PluginException
testValidatePlugin
public void testValidatePlugin()
throws PluginParseException
- Throws:
PluginParseException
testValidatePluginWithNoDynamicLoaders
public void testValidatePluginWithNoDynamicLoaders()
throws PluginParseException
- Throws:
PluginParseException
testInvalidationOfDynamicClassCache
public void testInvalidationOfDynamicClassCache()
throws java.io.IOException,
PluginException
- Throws:
java.io.IOException
PluginException
testInstallPlugin
public void testInstallPlugin()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInstallPluginsWithOne
public void testInstallPluginsWithOne()
testInstallPluginsWithTwo
public void testInstallPluginsWithTwo()
testInstallPluginsWithTwoButOneFailsValidation
public void testInstallPluginsWithTwoButOneFailsValidation()
testInstallPluginsWithTwoButOneFailsValidationWithException
public void testInstallPluginsWithTwoButOneFailsValidationWithException()
testAddPluginsThatThrowExceptionOnEnabled
public void testAddPluginsThatThrowExceptionOnEnabled()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUninstallPluginClearsState
public void testUninstallPluginClearsState()
throws java.io.IOException
- Throws:
java.io.IOException
testCannotInitTwice
public void testCannotInitTwice()
throws PluginParseException
- Throws:
PluginParseException
testCannotShutdownTwice
public void testCannotShutdownTwice()
throws PluginParseException
- Throws:
PluginParseException
testGetPluginWithNullKey
public void testGetPluginWithNullKey()
testShutdownHandlesException
public void testShutdownHandlesException()
createPluginWithVersion
public Plugin createPluginWithVersion(java.lang.String version)
Copyright © 2010 Atlassian. All Rights Reserved.