Java Globus API: Class FTPClient2PartyTest
org.globus.ftp.test
Class FTPClient2PartyTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.globus.ftp.test.FTPClient2PartyTest
- All Implemented Interfaces:
- junit.framework.Test
- public class FTPClient2PartyTest
- extends junit.framework.TestCase
Test FTPClient.get() and put()
|
Method Summary |
static void |
main(String[] args)
|
static junit.framework.Test |
suite()
|
protected void |
testGet_setParams(FTPClient client,
String user,
String password,
int localServerMode,
int transferType,
int transferMode)
|
void |
testGet()
|
void |
testGetNoSuchPort()
Try transferring file to and from bad port on existing server. |
void |
testGetNoSuchServer()
Try transferring file to and from non existent server. |
void |
testGetNoSuchSrcFile()
try transferring non existent file;
ServerException should be thrown |
protected void |
testPut_setParams(FTPClient client,
String user,
String password,
int localServerMode,
int transferType,
int transferMode)
|
void |
testPut()
|
void |
testPutNoSuchDestDir()
try transferring file to non existent directory;
ServerException should be thrown. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
src
protected FTPClient src
dest
protected FTPClient dest
FTPClient2PartyTest
public FTPClient2PartyTest(String name)
main
public static void main(String[] args)
throws Exception
suite
public static junit.framework.Test suite()
testGet
public void testGet()
throws Exception
testPut
public void testPut()
throws Exception
testGetNoSuchPort
public void testGetNoSuchPort()
throws Exception
- Try transferring file to and from bad port on existing server.
IOException should be thrown.
testGetNoSuchServer
public void testGetNoSuchServer()
throws Exception
- Try transferring file to and from non existent server.
IOException should be thrown.
testGetNoSuchSrcFile
public void testGetNoSuchSrcFile()
throws Exception
- try transferring non existent file;
ServerException should be thrown
testPutNoSuchDestDir
public void testPutNoSuchDestDir()
throws Exception
- try transferring file to non existent directory;
ServerException should be thrown.
testGet_setParams
protected void testGet_setParams(FTPClient client,
String user,
String password,
int localServerMode,
int transferType,
int transferMode)
throws Exception
testPut_setParams
protected void testPut_setParams(FTPClient client,
String user,
String password,
int localServerMode,
int transferType,
int transferMode)
throws Exception