GridFTPClient2PartyTest (Java Globus API)

org.globus.ftp.test
Class GridFTPClient2PartyTest

java.lang.Object
  |
  +--TestCase
        |
        +--org.globus.ftp.test.GridFTPClient2PartyTest
Direct Known Subclasses:
GridFTPClient2PartyParallelTest

public class GridFTPClient2PartyTest
extends TestCase

Test GridFTPClient.get() and put()

See Also:
Serialized Form

Field Summary
protected  GridFTPClient dest
           
protected static org.apache.log4j.Logger logger
           
protected  GridFTPClient src
           
 
Constructor Summary
GridFTPClient2PartyTest(java.lang.String name)
           
 
Method Summary
protected  void get(GridFTPClient client, int localServerMode, int transferType, int transferMode, DataChannelAuthentication dcau, int prot, java.lang.String fullLocalFile, java.lang.String fullRemoteFile)
          This method performs the actual transfer
static void main(java.lang.String[] args)
           
protected  void put(GridFTPClient client, int localServerMode, int transferType, int transferMode, DataChannelAuthentication dcau, int prot, java.lang.String fullLocalFile, java.lang.String fullRemoteFile)
          This method performs the actual transfer
static Test suite()
           
protected  void testGet(java.lang.String host, int port, java.lang.String fullRemoteFile, java.lang.String localDestDir, int localServerMode, int transferType, int transferMode)
           
protected  void testGet(java.lang.String host, int port, java.lang.String remoteDir, java.lang.String remoteFile, java.lang.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 testGetPut()
           
protected  void testPut(java.lang.String host, int port, java.lang.String remoteDir, java.lang.String localDir, java.lang.String localFile)
           
protected  void testPut(java.lang.String host, int port, java.lang.String remoteDestDir, java.lang.String localFile, java.lang.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

src

protected GridFTPClient src

dest

protected GridFTPClient dest
Constructor Detail

GridFTPClient2PartyTest

public GridFTPClient2PartyTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

suite

public static Test suite()

testGetPut

public void testGetPut()

testGetNoSuchPort

public void testGetNoSuchPort()
                       throws java.lang.Exception
Try transferring file to and from bad port on existing server. IOException should be thrown.

java.lang.Exception

testGetNoSuchServer

public void testGetNoSuchServer()
                         throws java.lang.Exception
Try transferring file to and from non existent server. IOException should be thrown.

java.lang.Exception

testGetNoSuchSrcFile

public void testGetNoSuchSrcFile()
                          throws java.lang.Exception
try transferring non existent file; ServerException should be thrown

java.lang.Exception

testPutNoSuchDestDir

public void testPutNoSuchDestDir()
                          throws java.lang.Exception
try transferring file to non existent directory; ServerException should be thrown.

java.lang.Exception

testGet

protected void testGet(java.lang.String host,
                       int port,
                       java.lang.String remoteDir,
                       java.lang.String remoteFile,
                       java.lang.String localDir)
                throws java.lang.Exception
java.lang.Exception

testGet

protected void testGet(java.lang.String host,
                       int port,
                       java.lang.String fullRemoteFile,
                       java.lang.String localDestDir,
                       int localServerMode,
                       int transferType,
                       int transferMode)
                throws java.lang.Exception
java.lang.Exception

get

protected void get(GridFTPClient client,
                   int localServerMode,
                   int transferType,
                   int transferMode,
                   DataChannelAuthentication dcau,
                   int prot,
                   java.lang.String fullLocalFile,
                   java.lang.String fullRemoteFile)
            throws java.lang.Exception
This method performs the actual transfer

java.lang.Exception

testPut

protected void testPut(java.lang.String host,
                       int port,
                       java.lang.String remoteDir,
                       java.lang.String localDir,
                       java.lang.String localFile)
                throws java.lang.Exception
java.lang.Exception

testPut

protected void testPut(java.lang.String host,
                       int port,
                       java.lang.String remoteDestDir,
                       java.lang.String localFile,
                       java.lang.String localDir,
                       int localServerMode,
                       int transferType,
                       int transferMode)
                throws java.lang.Exception
java.lang.Exception

put

protected void put(GridFTPClient client,
                   int localServerMode,
                   int transferType,
                   int transferMode,
                   DataChannelAuthentication dcau,
                   int prot,
                   java.lang.String fullLocalFile,
                   java.lang.String fullRemoteFile)
            throws java.lang.Exception
This method performs the actual transfer

java.lang.Exception