public abstract class AbstractFtpServerTestCase extends AbstractServiceAndFlowTestCase implements MuleFtplet.Callback
AbstractServiceAndFlowTestCase.ConfigVariant
Modifier and Type | Field and Description |
---|---|
DynamicPort |
dynamicPort |
static String |
FTP_SERVER_BASE_DIR |
protected org.apache.ftpserver.ftplet.Ftplet |
ftplet
Subclasses can overwrite Ftplet that will be registered when creating the server.
|
static String |
TEST_MESSAGE |
configResources, variant
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, 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 |
---|
AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
String configResources) |
AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
String configResources,
int timeout) |
AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
String configResources,
String ftpHost,
int timeout) |
Modifier and Type | Method and Description |
---|---|
protected File |
createDataFile(File folder,
String testMessage) |
protected File |
createDataFile(File folder,
String encoding,
String testMessage) |
protected void |
createFileOnFtpServer(String fileName) |
protected void |
createFtpServerDir(String directoryName) |
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() . |
protected void |
doTearDown()
Enables the adding of extra behavior on the tear down stage of a test
before the mule context is disposed in
AbstractMuleContextTestCase.disposeContextPerTest() . |
protected boolean |
fileExists(String fileName) |
void |
fileMoveCompleted() |
void |
fileUploadCompleted() |
FTPTestClient |
getFtpClient() |
protected File |
getFtpServerBaseDir() |
String |
getMuleFtpEndpoint()
Return the endpoint denoted by the ftp configuration
|
protected int |
getTimeout() |
protected void |
startServer() |
protected void |
stopServer() |
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, doSetUpBeforeMuleContextCreation, 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 static final String TEST_MESSAGE
public static final String FTP_SERVER_BASE_DIR
protected org.apache.ftpserver.ftplet.Ftplet ftplet
public DynamicPort dynamicPort
public AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources, String ftpHost, int timeout)
public AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources, int timeout)
public AbstractFtpServerTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources)
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 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 testcaseprotected void createFtpServerDir(String directoryName)
protected int getTimeout()
public FTPTestClient getFtpClient()
public String getMuleFtpEndpoint()
protected void createFileOnFtpServer(String fileName) throws IOException
IOException
protected boolean fileExists(String fileName)
public void fileUploadCompleted()
fileUploadCompleted
in interface MuleFtplet.Callback
public void fileMoveCompleted()
fileMoveCompleted
in interface MuleFtplet.Callback
protected File getFtpServerBaseDir()
protected File createDataFile(File folder, String testMessage) throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.