|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.enterprisedt.net.ftp.test.FTPTestCase | +--com.enterprisedt.net.ftp.test.TestTransfer
Test get'ing and put'ing of remote files in various ways
Field Summary |
Fields inherited from class com.enterprisedt.net.ftp.test.FTPTestCase |
connectMode, ftp, host, localBinaryFile, localEmptyFile, localTextFile, log, password, remoteBinaryFile, remoteEmptyDir, remoteEmptyFile, remoteTextFile, 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, 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 |
Constructor Detail |
public TestTransfer()
Method Detail |
protected java.lang.String getLogName()
getLogName
in class FTPTestCase
public void testTransferBinary() throws java.lang.Exception
java.lang.Exception
public void testTransferText() throws java.lang.Exception
java.lang.Exception
public void testGetBytes() throws java.lang.Exception
java.lang.Exception
public void testTransferStream() throws java.lang.Exception
java.lang.Exception
public void testPutAppend() throws java.lang.Exception
java.lang.Exception
public void testTransferEmpty() throws java.lang.Exception
java.lang.Exception
public void testTransferNonExistent() throws java.lang.Exception
java.lang.Exception
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |