|
||||||||||
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 java.lang.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 java.lang.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(java.lang.String ftpHost,
int port,
int timeout)
|
Method Summary | |
---|---|
protected void |
createFileOnFtpServer(java.lang.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()
|
java.lang.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 java.lang.String TEST_MESSAGE
public static final java.lang.String FTP_SERVER_BASE_DIR
protected org.apache.ftpserver.ftplet.Ftplet ftplet
Constructor Detail |
---|
public AbstractFtpServerTestCase(java.lang.String ftpHost, int port, int timeout)
public AbstractFtpServerTestCase(int port, int timeout)
public AbstractFtpServerTestCase(int port)
Method Detail |
---|
protected void startServer() throws java.lang.Exception
java.lang.Exception
protected void stopServer() throws java.lang.Exception
java.lang.Exception
protected void doSetUp() throws java.lang.Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractMuleTestCase
java.lang.Exception
- if something fails that should halt the testcaseprotected void doTearDown() throws java.lang.Exception
AbstractMuleTestCase
AbstractMuleTestCase.tearDown()
in normal JUnit test cases. this is called after a test
method has been called.
doTearDown
in class AbstractMuleTestCase
java.lang.Exception
- if something fails that should halt the testcaseprotected int getTimeout()
public FTPTestClient getFtpClient()
public java.lang.String getMuleFtpEndpoint()
protected void createFileOnFtpServer(java.lang.String fileName) throws java.io.IOException
java.io.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 |