org.nees.data.test
Class NFMSSessionTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.nees.data.test.NFMSTestMetaClass
              extended byorg.nees.data.test.NFMSSessionTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NFMSGeneralTest, NFMSProtocolTest

public abstract class NFMSSessionTest
extends NFMSTestMetaClass

Author:
USER

Field Summary
 
Fields inherited from class org.nees.data.test.NFMSTestMetaClass
APPEND_FILE_COUNT_KEY, BACKEND_TESTS_ENABLED_KEY, DOWNLOADOPTIONS_COUNT, FAILED, FILE_SIZE_KEY, FTP_PASSWORD_KEY, FTP_TESTS_ENABLED_KEY, FTP_USERNAME_KEY, GENERAL_TESTS_ENABLED_KEY, GRID_FTP_TESTS_ENABLED_KEY, GRID_USER_CREDENTIAL_FILE_KEY, LOCAL_DEBUG_MODE_KEY, LOCAL_DEBUG_SESSION_USER_KEY, LOCAL_DEBUG_USER_HOME_KEY, LOCAL_FILE_TESTS_ENABLED_KEY, NFMS_FACADE_TESTS_ENABLED_KEY, NFMS_PROPERTIES_FILE_KEY, NFMS_SERVICE_URI_KEY, OK, SCRATCH_DIRECTORY_KEY, TEST_LOGICAL_NAME_KEY, TEST_NAMESPACE_KEY, TEST_PROPERTIES_FILE_KEY, UPLOADOPTIONS_COUNT_KEY, VERSION_FILE_COUNT_KEY
 
Constructor Summary
NFMSSessionTest()
          Creates a new instance of SessionTest
NFMSSessionTest(java.lang.String x)
           
 
Method Summary
protected  void downloadLocalFile(java.io.File dFile, LogicalName logicalName, int version)
           
 FileManagementServiceInterface getNFMS()
           
protected  void localFileTransfer(java.net.URI localURI, java.net.URI remoteURI, boolean isPut)
          Utility needed by gridFTP and FTP trasfer methods
protected  TransferReturnBean startLocalFileDownload(java.io.File dFile, LogicalName logicalName, int version)
           
protected  TransferReturnBean startLocalFileUpload(java.io.File tempFile, LogicalName logicalName, boolean isNewFile, boolean isAppend, boolean isNewVersion)
           
protected  LogicalName uploadLocalFile(java.io.File tempFile, boolean isNewFile, boolean isAppend, boolean isNewVersion)
          This uploads a file, creates the logical name and returns the logical name.
protected  void uploadLocalFile(java.io.File tempFile, LogicalName ln, boolean isNewFile, boolean isAppend, boolean isNewVersion)
          This uploads the file, using the supplied logical name
 
Methods inherited from class org.nees.data.test.NFMSTestMetaClass
getAssumedAuthenticIdentity, getBackend, getBootstrapper, getFTU, getGridID, getLocalNFMS, getNFMSProperties, getRepoRootDirURI, getScratchDir, getTestProperties, getUserDirURI, makeLogicalName, report, report
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NFMSSessionTest

public NFMSSessionTest()
Creates a new instance of SessionTest


NFMSSessionTest

public NFMSSessionTest(java.lang.String x)
Method Detail

getNFMS

public FileManagementServiceInterface getNFMS()

localFileTransfer

protected void localFileTransfer(java.net.URI localURI,
                                 java.net.URI remoteURI,
                                 boolean isPut)
                          throws java.lang.Exception
Utility needed by gridFTP and FTP trasfer methods

Throws:
java.lang.Exception

startLocalFileUpload

protected TransferReturnBean startLocalFileUpload(java.io.File tempFile,
                                                  LogicalName logicalName,
                                                  boolean isNewFile,
                                                  boolean isAppend,
                                                  boolean isNewVersion)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

uploadLocalFile

protected void uploadLocalFile(java.io.File tempFile,
                               LogicalName ln,
                               boolean isNewFile,
                               boolean isAppend,
                               boolean isNewVersion)
                        throws java.lang.Exception
This uploads the file, using the supplied logical name

Throws:
java.lang.Exception

uploadLocalFile

protected LogicalName uploadLocalFile(java.io.File tempFile,
                                      boolean isNewFile,
                                      boolean isAppend,
                                      boolean isNewVersion)
                               throws java.lang.Exception
This uploads a file, creates the logical name and returns the logical name.

Throws:
java.lang.Exception

startLocalFileDownload

protected TransferReturnBean startLocalFileDownload(java.io.File dFile,
                                                    LogicalName logicalName,
                                                    int version)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

downloadLocalFile

protected void downloadLocalFile(java.io.File dFile,
                                 LogicalName logicalName,
                                 int version)
                          throws java.lang.Exception
Throws:
java.lang.Exception