FTPClient2PartyTest (Java Globus API)

org.globus.ftp.test
Class FTPClient2PartyTest

java.lang.Object
  |
  +--TestCase
        |
        +--org.globus.ftp.test.FTPClient2PartyTest

public class FTPClient2PartyTest
extends TestCase

Test FTPClient.get() and put()

See Also:
Serialized Form

Field Summary
protected  FTPClient dest
           
protected  FTPClient src
           
 
Constructor Summary
FTPClient2PartyTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static Test suite()
           
protected  void testGet_setParams(FTPClient client, java.lang.String user, java.lang.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, java.lang.String user, java.lang.String password, 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

src

protected FTPClient src

dest

protected FTPClient dest
Constructor Detail

FTPClient2PartyTest

public FTPClient2PartyTest(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()

testGet

public void testGet()

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_setParams

protected void testGet_setParams(FTPClient client,
                                 java.lang.String user,
                                 java.lang.String password,
                                 int localServerMode,
                                 int transferType,
                                 int transferMode)
                          throws java.lang.Exception
java.lang.Exception

testPut_setParams

protected void testPut_setParams(FTPClient client,
                                 java.lang.String user,
                                 java.lang.String password,
                                 int localServerMode,
                                 int transferType,
                                 int transferMode)
                          throws java.lang.Exception
java.lang.Exception