com.enterprisedt.net.ftp.test
Class TestTransfer

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.enterprisedt.net.ftp.test.FTPTestCase
              extended bycom.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.5 $
Author:
Bruce Blackshaw

Field Summary
static java.lang.String cvsId
          Revision control id
 
Fields inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
connectMode, ftp, host, localBinaryFile, localEmptyFile, localTextFile, log, password, props, remoteBinaryFile, remoteEmptyDir, remoteEmptyFile, remoteTextFile, strictReplies, testdir, timeout, user
 
Constructor Summary
TestTransfer()
           
 
Method Summary
protected  java.lang.String getLogName()
          Get name of log file
static void main(java.lang.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 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
 
Methods inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
assertIdentical, assertIdentical, assertIdentical, connect, connect, generateRandomFilename, login, 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 java.lang.String cvsId
Revision control id

Constructor Detail

TestTransfer

public TestTransfer()
Method Detail

getLogName

protected java.lang.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 java.lang.Exception
Test transfering a binary file

Throws:
java.lang.Exception

testTransferText

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

Throws:
java.lang.Exception

testGetBytes

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

Throws:
java.lang.Exception

testTransferStream

public void testTransferStream()
                        throws java.lang.Exception
Test the stream functionality

Throws:
java.lang.Exception

testPutAppend

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

Throws:
java.lang.Exception

testTransferEmpty

public void testTransferEmpty()
                       throws java.lang.Exception
Test transferring empty files

Throws:
java.lang.Exception

testTransferNonExistent

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

Throws:
java.lang.Exception

suite

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

Returns:
suite of tests for this class

main

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



Copyright (c) 2001-2004 Enterprise Distributed Technologies Ltd. All Rights Reserved.