| com.enterprisedt.net.ftp.test.FTPTestCase
All known Subclasses: com.enterprisedt.net.ftp.test.TestGeneral, com.enterprisedt.net.ftp.test.TestListings, com.enterprisedt.net.ftp.test.TestTimeout, com.enterprisedt.net.ftp.test.TestFeatures, com.enterprisedt.net.ftp.test.VMSTests, com.enterprisedt.net.ftp.test.TestFileOperations, com.enterprisedt.net.ftp.test.TestAutoModeTransfer, com.enterprisedt.net.ftp.test.TestPortRange, com.enterprisedt.net.ftp.test.TestBulkTransfer, com.enterprisedt.net.ftp.test.TestTransfer, com.enterprisedt.net.ftp.test.TestExists, com.enterprisedt.net.ftp.test.TestResume, com.enterprisedt.net.ftp.test.TestDirOperations, com.enterprisedt.net.ftp.test.TestMLST, com.enterprisedt.net.ftp.test.TestBigTransfer,
FTPTestCase | abstract public class FTPTestCase extends TestCase (Code) | | Generic JUnit test class for FTP, that provides some
useful methods for subclasses that implement the actual
test cases
author: Bruce Blackshaw version: $Revision: 1.22 $ |
bulkCount | protected int bulkCount(Code) | | Number of operations for stress testing
|
highPort | protected int highPort(Code) | | Highest port
|
localBigFile | protected String localBigFile(Code) | | Big local file for testing
|
localBigTextFile | protected String localBigTextFile(Code) | | Big local text file for testing
|
localBinaryFile | protected String localBinaryFile(Code) | | Local binary file
|
localDataDir | protected String localDataDir(Code) | | Local data directory
|
localEmptyFile | protected String localEmptyFile(Code) | | Local empty file
|
localTestDir | protected String localTestDir(Code) | | Local test dir
|
localTextFile | protected String localTextFile(Code) | | Local text file
|
localUnixTextFile | protected String localUnixTextFile(Code) | | Local text file
|
lowPort | protected int lowPort(Code) | | Lowest port
|
remoteBinaryFile | protected String remoteBinaryFile(Code) | | Remote binary file
|
remoteEmptyDir | protected String remoteEmptyDir(Code) | | Remote empty dir
|
remoteEmptyFile | protected String remoteEmptyFile(Code) | | Remote empty file
|
remoteTextFile | protected String remoteTextFile(Code) | | Remote text file
|
testdir | protected String testdir(Code) | | Remote directory that remote test files/dirs are in
|
FTPTestCase | public FTPTestCase()(Code) | | Initialize test properties
|
assertIdentical | protected void assertIdentical(byte[] buf1, byte[] buf2) throws Exception(Code) | | Test to see if two buffers are identical, byte for byte
Parameters: buf1 - first buffer Parameters: buf2 - second buffer |
assertIdentical | protected void assertIdentical(String file1, String file2) throws Exception(Code) | | Test to see if two files are identical, byte for byte
Parameters: file1 - name of first file Parameters: file2 - name of second file |
assertIdentical | protected void assertIdentical(File file1, File file2) throws Exception(Code) | | Test to see if two files are identical, byte for byte
Parameters: file1 - first file object Parameters: file2 - second file object |
bulkTransfer | protected void bulkTransfer(String localFile) throws Exception(Code) | | Transfer back and forth multiple times
|
connect | protected void connect() throws Exception(Code) | | Connect to the server and setup log stream
|
generateRandomFilename | protected String generateRandomFilename()(Code) | | Generate a random file name for testing
random filename |
getLogName | abstract protected String getLogName()(Code) | | Get name of log file
name of file to log to |
print | protected void print(String[] list)(Code) | | Helper method for dumping a listing
Parameters: list - directory listing to print |
print | protected void print(File[] list)(Code) | | Helper method for dumping a listing
Parameters: list - directory listing to print |
print | protected void print(FTPFile[] list)(Code) | | Helper method for dumping a listing
Parameters: list - directory listing to print |
setUp | protected void setUp() throws Exception(Code) | | Setup is called before running each test
|
tearDown | protected void tearDown() throws Exception(Code) | | Deallocate resources at close of each test
|
|
|