|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.FunctionalTestCase
org.mule.transport.ftp.AbstractFtpServerTestCase
public abstract class AbstractFtpServerTestCase
Abstract FTP test class. Sets up the ftp server and starts/stops it during the test lifecycle.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
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
|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, testTimeoutSecs |
Constructor Summary | |
---|---|
AbstractFtpServerTestCase(int port)
|
|
AbstractFtpServerTestCase(int port,
int timeout)
|
|
AbstractFtpServerTestCase(String ftpHost,
int port,
int timeout)
|
Method Summary | |
---|---|
protected void |
createFileOnFtpServer(String fileName)
|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
protected void |
doTearDown()
Exactly the same a AbstractMuleTestCase.tearDown() in normal JUnit test cases. |
void |
fileMoveCompleted()
|
void |
fileUploadCompleted()
|
FTPTestClient |
getFtpClient()
|
String |
getMuleFtpEndpoint()
Return the endpoint denoted by the ftp configuration |
protected int |
getTimeout()
|
protected void |
startServer()
|
protected void |
stopServer()
|
Methods inherited from class org.mule.tck.FunctionalTestCase |
---|
getBuilder, getComponent, getComponent, getConfigResources, getFunctionalTestComponent, loadResource, loadResourceAsString |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TEST_MESSAGE
public static final String FTP_SERVER_BASE_DIR
protected org.apache.ftpserver.ftplet.Ftplet ftplet
Constructor Detail |
---|
public AbstractFtpServerTestCase(String ftpHost, int port, int timeout)
public AbstractFtpServerTestCase(int port, int timeout)
public AbstractFtpServerTestCase(int port)
Method Detail |
---|
protected void startServer() throws Exception
Exception
protected void stopServer() throws Exception
Exception
protected void doSetUp() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractMuleTestCase
Exception
- if something fails that should halt the testcaseprotected void doTearDown() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.tearDown()
in normal JUnit test cases. this is called after a test
method has been called.
doTearDown
in class AbstractMuleTestCase
Exception
- if something fails that should halt the testcaseprotected int getTimeout()
public FTPTestClient getFtpClient()
public String getMuleFtpEndpoint()
protected void createFileOnFtpServer(String fileName) throws IOException
IOException
public void fileUploadCompleted()
fileUploadCompleted
in interface MuleFtplet.Callback
public void fileMoveCompleted()
fileMoveCompleted
in interface MuleFtplet.Callback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |