org.mule.transport.ftp.server
Class FTPServerClientTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.transport.ftp.server.FTPServerClientTest
All Implemented Interfaces:
junit.framework.Test

public class FTPServerClientTest
extends junit.framework.TestCase

Various tests against the FTPClient/Server we use in Mule ftp transport tests. This is to make sure basic ftp functionality works with our current ftp client/server before we throw Mule into the mix.


Field Summary
 int port
           
 
Constructor Summary
FTPServerClientTest()
           
 
Method Summary
 void setUp()
          Initialize the ftp server
 void tearDown()
          Stop the ftp server and disconnect the client
 void testCreateDeleteDir()
          Create a directory and delete it
 void testCreateDeleteFile()
          Create a file and delete it
 void testRecursiveDelete()
          Create a bunch of files/dirs then recursively delete them
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

port

public int port
Constructor Detail

FTPServerClientTest

public FTPServerClientTest()
Method Detail

setUp

public void setUp()
           throws Exception
Initialize the ftp server

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testCreateDeleteDir

public void testCreateDeleteDir()
                         throws IOException
Create a directory and delete it

Throws:
IOException

testCreateDeleteFile

public void testCreateDeleteFile()
                          throws IOException
Create a file and delete it

Throws:
IOException

testRecursiveDelete

public void testRecursiveDelete()
                         throws IOException
Create a bunch of files/dirs then recursively delete them

Throws:
IOException

tearDown

public void tearDown()
Stop the ftp server and disconnect the client

Overrides:
tearDown in class junit.framework.TestCase


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.