edtFTPj

com.enterprisedt.net.ftp.test
Class TestTransfer

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.enterprisedt.net.ftp.test.FTPTestCase
              extended by com.enterprisedt.net.ftp.test.TestTransfer
All Implemented Interfaces:
junit.framework.Test

public class TestTransfer
extends FTPTestCase

Test get'ing and put'ing of remote files in various ways

Version:
$Revision: 1.13 $
Author:
Bruce Blackshaw

Nested Class Summary
 class TestTransfer.TestProgressMonitor
          Test of progress monitor functionality
 
Field Summary
static String cvsId
          Revision control id
 
Fields inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
bulkCount, ftp, highPort, localBigFile, localBigTextFile, localBinaryFile, localDataDir, localEmptyFile, localTestDir, localTextFile, localUnixTextFile, log, logDir, lowPort, props, remoteBinaryFile, remoteEmptyDir, remoteEmptyFile, remoteTextFile, testdir, tools
 
Constructor Summary
TestTransfer()
           
 
Method Summary
protected  String getLogName()
          Get name of log file
static void main(String[] args)
          Enable our class to be run, doing the tests
static junit.framework.Test suite()
          Automatic test suite construction
 void testGetBytes()
          Test getting a byte array
 void testNoLocalFilename()
          Test transfering by only supplying a local dir, not a full pathname
 void testPutAppend()
          Test the append functionality in put()
 void testTransferBinary()
          Test transfering a binary file
 void testTransferEmpty()
          Test transferring empty files
 void testTransferNonExistent()
          Test transferring non-existent files
 void testTransferStream()
          Test the stream functionality
 void testTransferText()
          Test transfering a text file
 void testTransferUnique()
          Test transfering using the server to generate a unique file name
 void testTransferUnixText()
          Test transfering a text file
 
Methods inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
assertIdentical, assertIdentical, assertIdentical, bulkTransfer, connect, generateRandomFilename, print, print, print, setUp, tearDown
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static String cvsId
Revision control id

Constructor Detail

TestTransfer

public TestTransfer()
Method Detail

getLogName

protected String getLogName()
Get name of log file

Specified by:
getLogName in class FTPTestCase
Returns:
name of file to log to

testTransferBinary

public void testTransferBinary()
                        throws Exception
Test transfering a binary file

Throws:
Exception

testTransferUnique

public void testTransferUnique()
                        throws Exception
Test transfering using the server to generate a unique file name

Throws:
Exception

testNoLocalFilename

public void testNoLocalFilename()
                         throws Exception
Test transfering by only supplying a local dir, not a full pathname

Throws:
Exception

testTransferText

public void testTransferText()
                      throws Exception
Test transfering a text file

Throws:
Exception

testTransferUnixText

public void testTransferUnixText()
                          throws Exception
Test transfering a text file

Throws:
Exception

testGetBytes

public void testGetBytes()
                  throws Exception
Test getting a byte array

Throws:
Exception

testTransferStream

public void testTransferStream()
                        throws Exception
Test the stream functionality

Throws:
Exception

testPutAppend

public void testPutAppend()
                   throws Exception
Test the append functionality in put()

Throws:
Exception

testTransferEmpty

public void testTransferEmpty()
                       throws Exception
Test transferring empty files

Throws:
Exception

testTransferNonExistent

public void testTransferNonExistent()
                             throws Exception
Test transferring non-existent files

Throws:
Exception

suite

public static junit.framework.Test suite()
Automatic test suite construction

Returns:
suite of tests for this class

main

public static void main(String[] args)
Enable our class to be run, doing the tests


edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.