public class SftpDuplicateHandlingFunctionalTestCase extends AbstractSftpTestCase
AbstractSftpTestCase.DispatchParameters
AbstractServiceAndFlowTestCase.ConfigVariant
FILENAME, INBOUND_ENDPOINT_DIR, MESSAGE_PROPERTIES, OUTBOUND_ENDPOINT_DIR, port, sftpClient, sftpServer
configResources, variant
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 |
---|
SftpDuplicateHandlingFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
String configResources) |
Modifier and Type | Method and Description |
---|---|
protected void |
doSetUp()
Enables the adding of extra behavior on the set up stage of a test right
after the creation of the mule context in
AbstractMuleContextTestCase.setUpMuleContext() . |
static Collection<Object[]> |
parameters() |
void |
testDuplicateHandlingAddSeqNo()
Test 3 - test duplicate handling by adding a sequence number to the new file
|
void |
testDuplicateHandlingAddSeqNoUsingConnector()
Test 4 - test duplicate handling by adding a sequence number to the new file
using default value on connector
|
void |
testDuplicateHandlingOverwrite()
Test 2 - test duplicate handling by overwriting the existing file Not yet
implemented, so currently we check for a valid exception...
|
void |
testDuplicateHandlingThrowException()
Test 1 - test duplicate handling by throwing an exception
|
assertFilesInEndpoint, assertFilesInEndpoint, assertFilesInEndpoint, assertFilesInEndpoint, assertFilesInLocalFilesystem, assertFilesInLocalFilesystem, assertNoFilesInEndpoint, assertNoFilesInEndpoint, assertNoFilesInLocalFilesystem, checkConnectors, createRemoteDirectory, dispatchAndWaitForDelivery, dispatchAndWaitForException, dispatchAndWaitForException, doSetUpBeforeMuleContextCreation, executeBaseAssertionsAfterCall, executeBaseAssertionsBeforeCall, executeBaseTest, executeBaseTest, executeBaseTest, getAddressByEndpoint, getImmutableEndpoint, getPathByEndpoint, getSftpClient, getSftpClient, getUriByEndpointName, initEndpointDirectories, initEndpointDirectory, recursiveDelete, recursiveDeleteInLocalFilesystem, remoteChmod, startServerOnStartUp, startSftpServerAndClient, stopSftpServerAndClient, verifyFileExists, verifyFileExists
doSetUpForFlow, doSetUpForService, getConfigFile, getConfigFiles, getTestHeader
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigResources, getFlowConstruct, getFunctionalTestComponent, getSubFlow, loadResource, loadResourceAsString, lookupFlowConstruct, runFlow, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowNonBlocking, runFlowNonBlocking, runFlowNonBlocking, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow, testFlowNonBlocking, testFlowNonBlocking
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doTearDown, doTearDownAfterMuleContextDispose, 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, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public SftpDuplicateHandlingFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources)
public static Collection<Object[]> parameters()
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractServiceAndFlowTestCase
Exception
- if something fails that should halt the test casepublic void testDuplicateHandlingThrowException() throws Exception
Exception
public void testDuplicateHandlingOverwrite() throws Exception
Exception
public void testDuplicateHandlingAddSeqNo() throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.