testUninstallForceGoodCleanUpException() Tests uninstallComponent with the force option with a component that
throws an exception in its cleanUp() method.
Setup for the test. This creates the ComponentRegistry instance
and other objects needed for the tests.
throws: Exception - when set up fails for any reason.
Cleanup for the test.
throws: Exception - when tearDown fails for any reason.
testCancelComponentUpgradeBadEmptyComponentName
public void testCancelComponentUpgradeBadEmptyComponentName() throws Exception(Code)
Tests cancelComponentUpgrade with an empty component name parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testCancelComponentUpgradeBadNotFound
public void testCancelComponentUpgradeBadNotFound() throws Exception(Code)
Tests cancelComponentUpgrade with a non-existent component. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testCancelComponentUpgradeBadNullComponentName
public void testCancelComponentUpgradeBadNullComponentName() throws Exception(Code)
Tests cancelComponentUpgrade with a null component name parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testCancelComponentUpgradeGood
public void testCancelComponentUpgradeGood() throws Exception(Code)
Tests cancelComponentUpgrade with a good result.
throws: Exception - if an unexpected error occurs.
testGetComponentInstanceGood
public void testGetComponentInstanceGood() throws Exception(Code)
Tests getComponentInstance with a good result.
throws: Exception - if an unexpected error occurs.
testGetDeployerInstanceGood
public void testGetDeployerInstanceGood() throws Exception(Code)
Tests getDeployerInstance with a good result.
throws: Exception - if an unexpected error occurs.
testGetInstallerConfigurationMBeanNameBadBinding
public void testGetInstallerConfigurationMBeanNameBadBinding() throws Exception(Code)
Tests getInstallerConfigurationMBeanName for a BC with a bad result.
throws: Exception - if an unexpected error occurs.
testGetInstallerConfigurationMBeanNameBadEngine
public void testGetInstallerConfigurationMBeanNameBadEngine() throws Exception(Code)
Tests getInstallerConfigurationMBeanName for an SE with a bad result.
throws: Exception - if an unexpected error occurs.
testGetInstallerConfigurationMBeanNameGoodBinding
public void testGetInstallerConfigurationMBeanNameGoodBinding() throws Exception(Code)
Tests getInstallerConfigurationMBeanName for a BC with a good result.
throws: Exception - if an unexpected error occurs.
testGetInstallerConfigurationMBeanNameGoodEngine
public void testGetInstallerConfigurationMBeanNameGoodEngine() throws Exception(Code)
Tests getInstallerConfigurationMBeanName for an SE with a good result.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadBootstrapNotLoaded
public void testInstallBindingBadBootstrapNotLoaded() throws Exception(Code)
Tests installComponent with a component whose bootstrap class is no longer
loaded. An exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadCleanUpException
public void testInstallBindingBadCleanUpException() throws Exception(Code)
Tests installComponent with a binding whose bootstrap cleanUp() method
throws an exception.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadGetLifeCycleException
public void testInstallBindingBadGetLifeCycleException() throws Exception(Code)
Tests installComponent with a binding that throws an exception from its
getLifeCycle() method.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadGetLifeCycleNull
public void testInstallBindingBadGetLifeCycleNull() throws Exception(Code)
Tests installComponent with a binding that returns null from its
getLifeCycle() method.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadLifeCycleNotFound
public void testInstallBindingBadLifeCycleNotFound() throws Exception(Code)
Tests installComponent with a bad life cycle class name. The life cycle
class will not be found when an attempt is made to load it. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadNotLoaded
public void testInstallBindingBadNotLoaded() throws Exception(Code)
Tests installComponent with a component name that was never loaded. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadNullInstallationContext
public void testInstallBindingBadNullInstallationContext() throws Exception(Code)
Tests installComponent with a null ComponentInstallationContext.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadOnInstallCleanupExceptions
public void testInstallBindingBadOnInstallCleanupExceptions() throws Exception(Code)
Tests installComponent with a binding whose bootstrap onInstall() and
cleanUp() methods both throw exceptions. The client should see the
onInstall() exception, not the cleanUp() exception. The cleanUp()
exception should be logged.
throws: Exception - if an unexpected error occurs.
testInstallBindingBadOnInstallException
public void testInstallBindingBadOnInstallException() throws Exception(Code)
Tests installComponent with a binding whose bootstrap onInstall() method
throws an exception.
throws: Exception - if an unexpected error occurs.
Tests installComponent for a BC with a good result.
throws: Exception - if an unexpected error occurs.
testInstallBindingGoodModifiedClassPath
public void testInstallBindingGoodModifiedClassPath() throws Exception(Code)
Tests installComponent with a modified class path and a good result.
throws: Exception - if an unexpected error occurs.
testInstallComponentGoodLoggerNames
public void testInstallComponentGoodLoggerNames() throws Exception(Code)
Test an install with pre-defined logger names in the installation
descriptor extension.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadBootstrapNotLoaded
public void testInstallEngineBadBootstrapNotLoaded() throws Exception(Code)
Tests installComponent with a component whose bootstrap class is no longer
loaded. An exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadCleanUpException
public void testInstallEngineBadCleanUpException() throws Exception(Code)
Tests installComponent with an engine whose bootstrap cleanUp() method
throws an exception.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadGetLifeCycleException
public void testInstallEngineBadGetLifeCycleException() throws Exception(Code)
Tests installComponent with an engine that throws an exception from its
getLifeCycle() method.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadGetLifeCycleNull
public void testInstallEngineBadGetLifeCycleNull() throws Exception(Code)
Tests installComponent with an engine that returns null from its
getLifeCycle() method.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadLifeCycleNotFound
public void testInstallEngineBadLifeCycleNotFound() throws Exception(Code)
Tests installComponent with a bad life cycle class name. The life cycle
class will not be found when an attempt is made to load it. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadNotLoaded
public void testInstallEngineBadNotLoaded() throws Exception(Code)
Tests installComponent with a component name that was never loaded. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadNullInstallationContext
public void testInstallEngineBadNullInstallationContext() throws Exception(Code)
Tests installComponent with a null ComponentInstallationContext. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadOnInstallCleanUpExceptions
public void testInstallEngineBadOnInstallCleanUpExceptions() throws Exception(Code)
Tests installComponent with an engine whose bootstrap onInstall() and
cleanUp() methods both throw exceptions. The client should see the
onInstall() exception, not the cleanUp() exception. The cleanUp()
exception should be logged.
throws: Exception - if an unexpected error occurs.
testInstallEngineBadOnInstallException
public void testInstallEngineBadOnInstallException() throws Exception(Code)
Tests installComponent with an engine whose bootstrap onInstall() method
throws an exception.
throws: Exception - if an unexpected error occurs.
public void testLoadBootstrapBindingBadBootstrapInitCleanUpException() throws Exception(Code)
Tests loadBootstrap with a binding that throws an exception from its
bootstrap init() method and from its bootstrap cleanUp() method.
throws: Exception - if an unexpected error occurs
testLoadBootstrapBindingBadBootstrapInitException
public void testLoadBootstrapBindingBadBootstrapInitException() throws Exception(Code)
Tests loadBootstrap with a binding that throws an exception from its
bootstrap init() method.
throws: Exception - if an unexpected error occurs
testLoadBootstrapBindingBadBootstrapNotFound
public void testLoadBootstrapBindingBadBootstrapNotFound() throws Exception(Code)
Tests loadBootstrap with a bad bootstrap class name. The bootstrap
class will not be found when an attempt is made to load it. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapBindingBadDuplicate
public void testLoadBootstrapBindingBadDuplicate() throws Exception(Code)
Tests loadBootstrap with a duplicate component name specified. An
exception is expected.
throws: Exception - if an unexpected error occurs.
public void testLoadBootstrapEngineBadBootstrapInitCleanUpException() throws Exception(Code)
Tests loadBootstrap with an engine that throws an exception from its
bootstrap init() method and from its bootstrap cleanUp() method.
throws: Exception - if an unexpected error occurs
testLoadBootstrapEngineBadBootstrapInitException
public void testLoadBootstrapEngineBadBootstrapInitException() throws Exception(Code)
Tests loadBootstrap with an engine that throws an exception from its
bootstrap init() method.
throws: Exception - if an unexpected error occurs
testLoadBootstrapEngineBadBootstrapNotFound
public void testLoadBootstrapEngineBadBootstrapNotFound() throws Exception(Code)
Tests loadBootstrap with a bad bootstrap class name. The bootstrap
class will not be found when an attempt is made to load it. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadDuplicate
public void testLoadBootstrapEngineBadDuplicate() throws Exception(Code)
Tests loadBootstrap with a duplicate component name specified. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadEmptyBootstrapClassName
public void testLoadBootstrapEngineBadEmptyBootstrapClassName() throws Exception(Code)
Tests loadBootstrap with an empty bootstrap class name parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadEmptyBootstrapClassPath
public void testLoadBootstrapEngineBadEmptyBootstrapClassPath() throws Exception(Code)
Tests loadBootstrap with an empty bootstrap class path parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadLoaded
public void testLoadBootstrapEngineBadLoaded() throws Exception(Code)
Tests loadBootstrap with for an uninstall with a loaded component.
throws: Exception - if an unexpected error occurs
testLoadBootstrapEngineBadMissingSharedLibrary
public void testLoadBootstrapEngineBadMissingSharedLibrary() throws Exception(Code)
Tests loadBootstrap with a required Shared Library missing. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadNotInstalled
public void testLoadBootstrapEngineBadNotInstalled() throws Exception(Code)
Tests loadBootstrap with for an uninstall with a non-existent component.
throws: Exception - if an unexpected error occurs
testLoadBootstrapEngineBadNullBootstrapClassName
public void testLoadBootstrapEngineBadNullBootstrapClassName() throws Exception(Code)
Tests loadBootstrap with a null bootstrap class name parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadNullBootstrapClassPath
public void testLoadBootstrapEngineBadNullBootstrapClassPath() throws Exception(Code)
Tests loadBootstrap with a null bootstrap class path parameter. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineBadNullInstallationContext
public void testLoadBootstrapEngineBadNullInstallationContext() throws Exception(Code)
Tests loadBootstrap with a null ComponentInstallationContext parameter.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testLoadBootstrapEngineGood
public void testLoadBootstrapEngineGood() throws Exception(Code)
Tests loadBootstrap with a good result.
throws: Exception - if an unexpected error occurs.
testShutdownBindingBadShutdownException
public void testShutdownBindingBadShutdownException() throws Exception(Code)
Tests shutdownComponent with a binding whose shutDown() method always
throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownBindingBadStopException
public void testShutdownBindingBadStopException() throws Exception(Code)
Tests shutdownComponent with a binding whose stop() method always
throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownBindingForceShutdownException
public void testShutdownBindingForceShutdownException() throws Exception(Code)
Tests shutdownComponent force=true with a binding whose shutDown()
method always throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownBindingForceStopException
public void testShutdownBindingForceStopException() throws Exception(Code)
Tests shutdownComponent force=true with a binding whose stop() method
always throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownBindingGood
public void testShutdownBindingGood() throws Exception(Code)
Tests shutdownComponent with a good result.
throws: Exception - if an unexpected error occurs.
testShutdownBindingNotActive
public void testShutdownBindingNotActive() throws Exception(Code)
Tests shutdownComponent with a binding that is not active.
throws: Exception - if an unexpected error occurs.
testShutdownEngineAlreadyShutdown
public void testShutdownEngineAlreadyShutdown() throws Exception(Code)
Tests shutdownComponent with an engine that is not active.
throws: Exception - if an unexpected error occurs.
testShutdownEngineBadShutdownException
public void testShutdownEngineBadShutdownException() throws Exception(Code)
Tests shutdownComponent with an engine whose shutDown() method always
throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownEngineBadStopException
public void testShutdownEngineBadStopException() throws Exception(Code)
Tests shutdownComponent with an engine whose stop() method always throws
an exception.
throws: Exception - if an unexpected error occurs.
testShutdownEngineForceShutdownException
public void testShutdownEngineForceShutdownException() throws Exception(Code)
Tests shutdownComponent force=true with an engine whose shutDown()
method always throws an exception.
throws: Exception - if an unexpected error occurs.
testShutdownEngineForceStopException
public void testShutdownEngineForceStopException() throws Exception(Code)
Tests shutdownComponent force=true with an engine whose stop() method
always throws an exception.
throws: Exception - if an unexpected error occurs.
Tests startComponent with a good result.
throws: Exception - if an unexpected error occurs.
testStartServiceTimeout
public void testStartServiceTimeout() throws Exception(Code)
Tests startService with a BC that times out in its init() method and
an SE that times out on its start() method.
throws: Exception - if an unexpected error occurs.
testStopBindingAlreadyStopped
public void testStopBindingAlreadyStopped() throws Exception(Code)
Tests stopComponent with a binding that is already stopped.
throws: Exception - if an unexpected error occurs.
testStopBindingBadNotActive
public void testStopBindingBadNotActive() throws Exception(Code)
Tests stopComponent with a binding that is not active. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testStopBindingBadStopException
public void testStopBindingBadStopException() throws Exception(Code)
Tests stopComponent with a binding whose stop() method always throws
an exception.
throws: Exception - if an unexpected error occurs.
Tests stopService with a BC that times out in its shutDown() method,
an SE that shuts down normally.
throws: Exception - if an unexpected error occurs.
Tests stopService with a BC that times out in its stop() method and
an SE that times out on its shutDown().
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadCleanUpException
public void testUninstallBindingBadCleanUpException() throws Exception(Code)
Tests uninstallComponent with binding whose bootstrap cleanUp() method
throws an exception.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadDeployed
public void testUninstallBindingBadDeployed() throws Exception(Code)
Tests uninstallComponent with a binding that still has SUs deployed to it.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadNotFound
public void testUninstallBindingBadNotFound() throws Exception(Code)
Tests uninstallComponent with an nonexistent binding. An exception is
expected.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadNullInstallationContext
public void testUninstallBindingBadNullInstallationContext() throws Exception(Code)
Tests uninstallComponent with a null ComponentInstallationContext
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testUninstallBindingBadOnUninstallCleanUpExceptions() throws Exception(Code)
Tests uninstallComponent with binding whose bootstrap onUninstall() and
cleanUp() methods both throw exceptions. The client should see the
onUninstall() exception, not the cleanUp() exception. The cleanUp()
exception is only logged.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadOnUninstallException
public void testUninstallBindingBadOnUninstallException() throws Exception(Code)
Tests uninstallComponent with binding whose bootstrap onUninstall() method
throws an exception.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadStarted
public void testUninstallBindingBadStarted() throws Exception(Code)
Tests uninstallComponent with the binding started. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testUninstallBindingBadStopped
public void testUninstallBindingBadStopped() throws Exception(Code)
Tests uninstallComponent with the binding stopped. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testUninstallBindingGood
public void testUninstallBindingGood() throws Exception(Code)
Tests uninstallComponent with a good result.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadCleanUpException
public void testUninstallEngineBadCleanUpException() throws Exception(Code)
Tests uninstallComponent with an engine whose bootstrap cleanUp()
method throws an exception.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadDeployed
public void testUninstallEngineBadDeployed() throws Exception(Code)
Tests uninstallComponent with an engine that still has SUs deployed.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadNotFound
public void testUninstallEngineBadNotFound() throws Exception(Code)
Tests uninstallComponent with an nonexistent engine. An exception is
expected.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadNullInstallationContext
public void testUninstallEngineBadNullInstallationContext() throws Exception(Code)
Tests uninstallComponent with a null ComponentInstallationContext
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testUninstallEngineBadOnUninstallCleanupExceptions() throws Exception(Code)
Tests uninstallComponent with an engine whose bootstrap onUninstall() and
cleanUp() methods both throw exceptions. The client should see the
onUninstall() exception, not the cleanUp() exception. The cleanUp()
exception is only logged.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadOnUninstallException
public void testUninstallEngineBadOnUninstallException() throws Exception(Code)
Tests uninstallComponent with an engine whose bootstrap onUninstall()
method throws an exception.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadStarted
public void testUninstallEngineBadStarted() throws Exception(Code)
Tests uninstallComponent with the engine started. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testUninstallEngineBadStopped
public void testUninstallEngineBadStopped() throws Exception(Code)
Tests uninstallComponent with the engine stopped. An exception
is expected.
throws: Exception - if an unexpected error occurs.
testUninstallEngineGood
public void testUninstallEngineGood() throws Exception(Code)
Tests uninstallComponent with good results.
throws: Exception - if an unexpected error occurs.
testUninstallForceGoodCleanUpException
public void testUninstallForceGoodCleanUpException() throws Exception(Code)
Tests uninstallComponent with the force option with a component that
throws an exception in its cleanUp() method.
throws: Exception - if an unexpected error occurs.
testUninstallForceGoodOnUninstallCleanUpException
public void testUninstallForceGoodOnUninstallCleanUpException() throws Exception(Code)
Tests uninstallComponent with the force option with a component that
throws an exception in both its onUninstall() and its cleanUp() methods.
throws: Exception - if an unexpected error occurs.
testUninstallForceGoodOnUninstallException
public void testUninstallForceGoodOnUninstallException() throws Exception(Code)
Tests uninstallComponent with the force option with a component that
throws an exception in its onUninstall() method.
throws: Exception - if an unexpected error occurs.
testUninstallSharedLibraryBadDependents
public void testUninstallSharedLibraryBadDependents() throws Exception(Code)
Tests uninstallSharedLibrary with dependent components that are
either running or stopped. This will fail because all dependent
components must be shutdown before the uninstall will proceed.
throws: Exception - if an unexpected error occurs.
testUninstallSharedLibraryBadNotFound
public void testUninstallSharedLibraryBadNotFound() throws Exception(Code)
Tests uninstallSharedLibrary with a nonexistent Shared Library.
throws: Exception - if an unexpected error occurs.
testUninstallSharedLibraryGood
public void testUninstallSharedLibraryGood() throws Exception(Code)
Tests uninstallSharedLibrary with a good result.
throws: Exception - if an unexpected error occurs.
testUninstallSharedLibraryGoodDependents
public void testUninstallSharedLibraryGoodDependents() throws Exception(Code)
Tests uninstallSharedLibrary with dependent components that are
already shutdown.
throws: Exception - if an unexpected error occurs.
testUnloadBootstrapBadEmptyComponentName
public void testUnloadBootstrapBadEmptyComponentName() throws Exception(Code)
Tests unloadBootstrap with an empty component name. An exception is
expected.
throws: Exception - if an unexpected error occurs.
testUnloadBootstrapBadNullComponentName
public void testUnloadBootstrapBadNullComponentName() throws Exception(Code)
Tests unloadBootstrap with a null component name. An exception is
expected.
throws: Exception - if an unexpected error occurs.
testUnloadBootstrapBindingGood
public void testUnloadBootstrapBindingGood() throws Exception(Code)
Tests unloadBootstrap for a binding with good results.
throws: Exception - if an unexpected error occurs.
testUnloadBootstrapEngineGood
public void testUnloadBootstrapEngineGood() throws Exception(Code)
Tests unloadBootstrap for an engine with good results.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadBootstrapLoadFailed
public void testUpgradeComponentBadBootstrapLoadFailed() throws Exception(Code)
Tests upgradeComponent with a failure loading the bootstrap class. An
exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadEmptyBootClassName
public void testUpgradeComponentBadEmptyBootClassName() throws Exception(Code)
Tests upgradeComponent with an empty bootstrap class name parameter.
An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testUpgradeComponentBadEmptyBootClassPathElementList() throws Exception(Code)
Tests upgradeComponent with an empty bootstrap class path element list
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadMissingSharedLibrary
public void testUpgradeComponentBadMissingSharedLibrary() throws Exception(Code)
Tests upgradeComponent with a missing shared library. An exception is
expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadNoValidate
public void testUpgradeComponentBadNoValidate() throws Exception(Code)
Tests upgradeComponent without first calling
validateComponentForUpgrade(). An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadNotFound
public void testUpgradeComponentBadNotFound() throws Exception(Code)
Tests upgradeComponent with a non-existent component.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadNullBootClassName
public void testUpgradeComponentBadNullBootClassName() throws Exception(Code)
Tests upgradeComponent with a null bootstrap class name parameter.
An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testUpgradeComponentBadNullBootClassPathElementList() throws Exception(Code)
Tests upgradeComponent with a null bootstrap class path element
list parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadNullInstallationContext
public void testUpgradeComponentBadNullInstallationContext() throws Exception(Code)
Tests upgradeComponent with a null ComponentInstallationContext
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentBadUpgradeMethodFailed
public void testUpgradeComponentBadUpgradeMethodFailed() throws Exception(Code)
Tests upgradeComponent with a failure in the component's upgrade method.
An exception is expected.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGood
public void testUpgradeComponentGood() throws Exception(Code)
Tests upgradeComponent with a good result.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodBootstrapClassPath
public void testUpgradeComponentGoodBootstrapClassPath() throws Exception(Code)
Tests upgradeComponent with a good result with a changed bootstrap
class path.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodBootstrapSelfFirst
public void testUpgradeComponentGoodBootstrapSelfFirst() throws Exception(Code)
Tests upgradeComponent with a good result with a changed bootstrap
class loader self-first setting.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodComponentClassPath
public void testUpgradeComponentGoodComponentClassPath() throws Exception(Code)
Tests upgradeComponent with a good result with a changed component
class path.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodComponentSelfFirst
public void testUpgradeComponentGoodComponentSelfFirst() throws Exception(Code)
Tests upgradeComponent with a good result with a changed component
class loader self-first setting.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodDescription
public void testUpgradeComponentGoodDescription() throws Exception(Code)
Tests upgradeComponent with a good result with a changed component
description.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodLoggerNames
public void testUpgradeComponentGoodLoggerNames() throws Exception(Code)
Test an upgrade with pre-defined logger names in the installation
descriptor extension.
throws: Exception - if an unexpected error occurs.
testUpgradeComponentGoodSharedLibrary
public void testUpgradeComponentGoodSharedLibrary() throws Exception(Code)
Tests upgradeComponent with a good result with a new shared library.
throws: Exception - if an unexpected error occurs.
public void testValidateComponentForUpgradeBadEmptyBootClassName() throws Exception(Code)
Tests validateComponentForUpgrade with an empty bootstrap class name
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testValidateComponentForUpgradeBadEmptyBootClassPathElementList() throws Exception(Code)
Tests validateComponentForUpgrade with an empty bootstrap class path
element list parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testValidateComponentForUpgradeBadNullBootClassName() throws Exception(Code)
Tests validateComponentForUpgrade with a null bootstrap class name
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testValidateComponentForUpgradeBadNullBootClassPathElementList() throws Exception(Code)
Tests validateComponentForUpgrade with a null bootstrap class path element
list parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
public void testValidateComponentForUpgradeBadNullInstallationContext() throws Exception(Code)
Tests validateComponentForUpgrade with a null ComponentInstallationContext
parameter. An exception is expected.
throws: Exception - if an unexpected error occurs.
testValidateComponentForUpgradeGood
public void testValidateComponentForUpgradeGood() throws Exception(Code)
Tests validateComponentForUpgrade with a good result.
throws: Exception - if an unexpected error occurs.