public class DeploymentServiceTestCase extends AbstractMuleContextTestCase
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentServiceTestCase.WaitComponent |
Modifier and Type | Field and Description |
---|---|
protected DeploymentListener |
applicationDeploymentListener |
protected File |
appsDir |
SystemProperty |
changeChangeInterval |
protected static int |
DEPLOYMENT_TIMEOUT |
protected MuleDeploymentService |
deploymentService |
protected DeploymentListener |
domainDeploymentListener |
protected File |
domainsDir |
DynamicPort |
httpPort |
protected File |
muleHome |
protected static String[] |
NONE |
protected static int |
ONE_HOUR_IN_MILLISECONDS |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
DeploymentServiceTestCase() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getNonBlockingResponse, getNonBlockingTestEventUsingFlow, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
protected static final int DEPLOYMENT_TIMEOUT
protected static final String[] NONE
protected static final int ONE_HOUR_IN_MILLISECONDS
protected File muleHome
protected File appsDir
protected File domainsDir
protected MuleDeploymentService deploymentService
protected DeploymentListener applicationDeploymentListener
protected DeploymentListener domainDeploymentListener
public SystemProperty changeChangeInterval
public DynamicPort httpPort
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the test caseprotected void doTearDown() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.disposeContextPerTest()
.
Under normal circumstances this method could be replace with a
@After
annotated method.
doTearDown
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the testcasepublic void deploysExplodedAppAndVerifyAnchorFileIsCreatedAfterDeploymentEnds() throws Exception
Exception
public void deploysPackagedAppAndVerifyAnchorFileIsCreatedAfterDeploymentEnds() throws Exception
Exception
public void deploysAppZipAfterStartup() throws Exception
Exception
public void deploysBrokenAppZipOnStartup() throws Exception
Exception
public void doesNotRetriesBrokenAppWithFunkyName() throws Exception
Exception
public void deploysBrokenAppZipAfterStartup() throws Exception
Exception
public void redeploysAppZipDeployedOnStartup() throws Exception
Exception
public void redeploysAppZipDeployedAfterStartup() throws Exception
Exception
public void deploysExplodedAppOnStartup() throws Exception
Exception
public void deploysPackagedAppOnStartupWhenExplodedAppIsAlsoPresent() throws Exception
Exception
public void deploysExplodedAppAfterStartup() throws Exception
Exception
public void deploysInvalidExplodedAppOnStartup() throws Exception
Exception
public void deploysInvalidExplodedAppAfterStartup() throws Exception
Exception
public void deploysInvalidExplodedOnlyOnce() throws Exception
Exception
public void deploysBrokenExplodedAppOnStartup() throws Exception
Exception
public void deploysBrokenExplodedAppAfterStartup() throws Exception
Exception
public void redeploysExplodedAppOnStartup() throws Exception
Exception
public void redeploysExplodedAppAfterStartup() throws Exception
Exception
public void redeploysBrokenExplodedAppOnStartup() throws Exception
Exception
public void redeploysBrokenExplodedAppAfterStartup() throws Exception
Exception
public void redeploysInvalidExplodedAppAfterSuccessfulDeploymentOnStartup() throws Exception
Exception
public void redeploysInvalidExplodedAppAfterSuccessfulDeploymentAfterStartup() throws Exception
Exception
public void redeploysFixedAppAfterBrokenExplodedAppOnStartup() throws Exception
Exception
public void redeploysFixedAppAfterBrokenExplodedAppAfterStartup() throws Exception
Exception
public void redeployModifiedDomainAndRedeployFailedApps() throws Exception
Exception
public void redeploysZipAppOnConfigChanges() throws Exception
Exception
public void brokenAppArchiveWithoutArgument() throws Exception
Exception
public void brokenAppArchiveAsArgument() throws Exception
Exception
public void deploysInvalidZipAppOnStartup() throws Exception
Exception
public void deploysInvalidZipAppAfterStartup() throws Exception
Exception
public void deployAppNameWithZipSuffix() throws Exception
Exception
public void deploysPackedAppsInOrderWhenAppArgumentIsUsed() throws Exception
Exception
public void deploysExplodedAppsInOrderWhenAppArgumentIsUsed() throws Exception
Exception
public void tracksAppConfigUpdateTime() throws Exception
Exception
public void redeployedFailedAppAfterTouched() throws Exception
Exception
public void receivesMuleContextDeploymentNotifications() throws Exception
Exception
public void undeploysApplicationRemovingAnchorFile() throws Exception
Exception
public void undeploysAppCompletelyEvenOnStoppingException() throws Exception
Exception
public void undeploysAppCompletelyEvenOnDisposingException() throws Exception
Exception
public void deploysIncompleteZipAppOnStartup() throws Exception
Exception
public void deploysIncompleteZipAppAfterStartup() throws Exception
Exception
public void mantainsAppFolderOnExplodedAppDeploymentError() throws Exception
Exception
public void redeploysZipAppAfterDeploymentErrorOnStartup() throws Exception
Exception
public void redeploysZipAppAfterDeploymentErrorAfterStartup() throws Exception
Exception
public void redeploysInvalidZipAppAfterSuccessfulDeploymentOnStartup() throws Exception
Exception
public void redeploysInvalidZipAppAfterSuccessfulDeploymentAfterStartup() throws Exception
Exception
public void redeploysInvalidZipAppAfterFailedDeploymentOnStartup() throws Exception
Exception
public void redeploysInvalidZipAppAfterFailedDeploymentAfterStartup() throws Exception
Exception
public void redeploysExplodedAppAfterDeploymentError() throws Exception
Exception
public void deploysAppWithPluginSharedLibrary() throws Exception
Exception
public void synchronizesDeploymentOnStart() throws Exception
Exception
public void deploysDomainZipOnStartup() throws Exception
Exception
public void deploysPackagedDomainAndVerifyAnchorFileIsCreatedAfterDeploymentEnds() throws Exception
Exception
public void deploysExplodedDomainAndVerifyAnchorFileIsCreatedAfterDeploymentEnds() throws Exception
Exception
public void deploysExplodedDomainBundleOnStartup() throws Exception
Exception
public void deploysExplodedDomainBundleAfterStartup() throws Exception
Exception
public void deploysDomainBundleZipOnStartup() throws Exception
Exception
public void deploysDomainBundleZipAfterStartup() throws Exception
Exception
public void deploysInvalidExplodedDomainBundleOnStartup() throws Exception
Exception
public void deploysInvalidExplodedDomainBundleAfterStartup() throws Exception
Exception
public void deploysInvalidDomainBundleZipOnStartup() throws Exception
Exception
public void deploysInvalidDomainBundleZipAfterStartup() throws Exception
Exception
public void deploysDomainZipAfterStartup() throws Exception
Exception
public void deploysBrokenDomainZipOnStartup() throws Exception
Exception
public void deploysBrokenDomainZipAfterStartup() throws Exception
Exception
public void redeploysDomainZipDeployedOnStartup() throws Exception
Exception
public void redeployedDomainsAreDifferent() throws Exception
Exception
public void redeploysDomainZipRefreshesApps() throws Exception
Exception
public void redeploysDomainZipDeployedAfterStartup() throws Exception
Exception
protected void alterTimestampIfNeeded(File file, long firstTimestamp)
public void deploysExplodedDomainOnStartup() throws Exception
Exception
public void deploysPackagedDomainOnStartupWhenExplodedDomainIsAlsoPresent() throws Exception
Exception
public void deploysExplodedDomainAfterStartup() throws Exception
Exception
public void deploysInvalidExplodedDomainOnStartup() throws Exception
Exception
public void deploysInvalidExplodedDomainAfterStartup() throws Exception
Exception
public void deploysInvalidExplodedDomainOnlyOnce() throws Exception
Exception
public void deploysBrokenExplodedDomainOnStartup() throws Exception
Exception
public void deploysBrokenExplodedDomainAfterStartup() throws Exception
Exception
public void receivesDomainMuleContextDeploymentNotifications() throws Exception
Exception
public void undeploysDomainRemovingAnchorFile() throws Exception
Exception
public void undeploysDomainAndDomainsApps() throws Exception
Exception
public void undeploysDomainAndDomainsAppsRemovingAnchorFile() throws Exception
Exception
public void undeployDomainDoesNotDeployAllApplications() throws Exception
Exception
public void findDomainApplicationsWillNullDomainFails()
public void findDomainApplicationsWillNonExistentDomainReturnsEmptyCollection()
public void undeploysDomainCompletelyEvenOnStoppingException() throws Exception
Exception
public void undeploysDomainCompletelyEvenOnDisposingException() throws Exception
Exception
public void deploysIncompleteZipDomainOnStartup() throws Exception
Exception
public void deploysIncompleteZipDomainAfterStartup() throws Exception
Exception
public void mantainsDomainFolderOnExplodedAppDeploymentError() throws Exception
Exception
public void redeploysZipDomainAfterDeploymentErrorOnStartup() throws Exception
Exception
public void redeploysZipDomainAfterDeploymentErrorAfterStartup() throws Exception
Exception
public void refreshDomainClassloaderAfterRedeployment() throws Exception
Exception
public void redeploysInvalidZipDomainAfterSuccessfulDeploymentOnStartup() throws Exception
Exception
public void redeploysInvalidZipDomainAfterSuccessfulDeploymentAfterStartup() throws Exception
Exception
public void redeploysInvalidZipDomainAfterFailedDeploymentOnStartup() throws Exception
Exception
public void redeploysInvalidZipDomainAfterFailedDeploymentAfterStartup() throws Exception
Exception
public void redeploysExplodedDomainAfterDeploymentError() throws Exception
Exception
public void redeploysFixedDomainAfterBrokenExplodedDomainOnStartup() throws Exception
Exception
public void redeploysFixedDomainAfterBrokenExplodedDomainAfterStartup() throws Exception
Exception
public void redeploysDomainAndItsApplications() throws Exception
Exception
public void doesNotRedeployDomainWithRedeploymentDisabled() throws Exception
Exception
public void redeploysDomainWithOneApplicationFailedOnFirstDeployment() throws Exception
Exception
public void redeploysDomainWithOneApplicationFailedAfterRedeployment() throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.