Java Globus API: Class GridFTPClient2PartyTest
org.globus.ftp.test
Class GridFTPClient2PartyTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.globus.ftp.test.GridFTPClient2PartyTest
All Implemented Interfaces: junit.framework.Test
Direct Known Subclasses: GridFTPClient2PartyParallelTest
public class GridFTPClient2PartyTest extends junit.framework.TestCase
Test GridFTPClient.get() and put()
Method Summary
protected void
get (GridFTPClient client,
int localServerMode,
int transferType,
int transferMode,
DataChannelAuthentication dcau,
int prot,
String fullLocalFile,
String fullRemoteFile)
This method performs the actual transfer
static void
main (String [] args)
protected void
put (GridFTPClient client,
int localServerMode,
int transferType,
int transferMode,
DataChannelAuthentication dcau,
int prot,
String fullLocalFile,
String fullRemoteFile)
This method performs the actual transfer
static junit.framework.Test
suite ()
void
testGet ()
protected void
testGet (String host,
int port,
String fullRemoteFile,
String localDestDir,
int localServerMode,
int transferType,
int transferMode)
protected void
testGet (String host,
int port,
String remoteDir,
String remoteFile,
String localDir)
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
void
testPut ()
protected void
testPut (String host,
int port,
String remoteDir,
String localDir,
String localFile)
protected void
testPut (String host,
int port,
String remoteDestDir,
String localFile,
String localDir,
int localServerMode,
int transferType,
int transferMode)
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
logger
protected static org.apache.log4j.Logger logger
src
protected GridFTPClient src
dest
protected GridFTPClient dest
GridFTPClient2PartyTest
public GridFTPClient2PartyTest (String name)
main
public static void main (String [] args)
throws Exception
suite
public static junit.framework.Test suite ()
testGet
public void testGet ()
testPut
public void testPut ()
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
protected void testGet (String host,
int port,
String remoteDir,
String remoteFile,
String localDir)
throws Exception
testGet
protected void testGet (String host,
int port,
String fullRemoteFile,
String localDestDir,
int localServerMode,
int transferType,
int transferMode)
throws Exception
get
protected void get (GridFTPClient client,
int localServerMode,
int transferType,
int transferMode,
DataChannelAuthentication dcau,
int prot,
String fullLocalFile,
String fullRemoteFile)
throws Exception
This method performs the actual transfer
testPut
protected void testPut (String host,
int port,
String remoteDir,
String localDir,
String localFile)
throws Exception
testPut
protected void testPut (String host,
int port,
String remoteDestDir,
String localFile,
String localDir,
int localServerMode,
int transferType,
int transferMode)
throws Exception
put
protected void put (GridFTPClient client,
int localServerMode,
int transferType,
int transferMode,
DataChannelAuthentication dcau,
int prot,
String fullLocalFile,
String fullRemoteFile)
throws Exception
This method performs the actual transfer