|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.nees.data.test.NFMSTestMetaClass
org.nees.data.test.NFMSSessionTest
org.nees.data.test.NFMSProtocolTest
| Field Summary |
| Constructor Summary | |
NFMSProtocolTest()
Creates a new instance of NFMSProtocolTest |
|
NFMSProtocolTest(java.lang.String x)
|
|
| Method Summary | |
protected void |
downloadFile(java.io.File dFile,
LogicalName logicalName,
int version)
|
abstract java.lang.String |
getProtocol()
|
protected TransferReturnBean |
startDownload(java.io.File dFile,
LogicalName logicalName,
int version)
Starts a download. |
protected TransferReturnBean |
startUpload(java.io.File tempFile,
LogicalName ln,
boolean isNewFile,
boolean isAppend,
boolean isNewVersion)
Starts an upload. |
void |
testBadVersion()
Test that putting a file then trying to get the wrong version throws and exception. |
void |
testDownloadWithOptions()
|
void |
testFileAppend()
This will append multiple files to a single file. |
void |
testFileVersionAndAppend()
This tests that putting a file, then uploading another file with the append and version flags set performs correctly. |
void |
testFileVersioning()
This tests that a file may be put into nfms, versioned and then the most recent version can be retrieved. |
void |
testNoPre_ExistingFile()
|
void |
testPre_ExistingNewFileFailure()
This checks that when an entry exists any attempt to do an operation involving the new file flag being true fails. |
void |
testProtocolRequest()
Checks that the server recognizes this protocol. |
void |
testUploadWithOptions()
Upload with options test. |
abstract void |
transferFile(java.net.URI localURI,
java.net.URI remoteURI,
boolean putFile)
|
protected void |
uploadFile(java.io.File tempFile,
LogicalName ln,
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. |
| Methods inherited from class org.nees.data.test.NFMSSessionTest |
downloadLocalFile, getNFMS, localFileTransfer, startLocalFileDownload, startLocalFileUpload, uploadLocalFile |
| 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 |
public NFMSProtocolTest()
public NFMSProtocolTest(java.lang.String x)
| Method Detail |
public abstract java.lang.String getProtocol()
public abstract void transferFile(java.net.URI localURI,
java.net.URI remoteURI,
boolean putFile)
throws java.lang.Exception
java.lang.Exceptionpublic void testProtocolRequest()
Expected behavior - NFMS allows request and abort.
public void testNoPre_ExistingFile()
public void testFileVersioning()
Expected behavior - NFMS accepts all the files. Each version checks and the request for the latest version checks too.
public void testPre_ExistingNewFileFailure()
public void testFileAppend()
Expected behavior - NFMS concatenates all of the files and the request for the latest version equals (byte-wise) all the preceeding files.
public void testFileVersionAndAppend()
public void testBadVersion()
Expected behaior - Putting a single file to NFMS then requesting a non-existent version throws an exception.
public void testUploadWithOptions()
public void testDownloadWithOptions()
protected TransferReturnBean startUpload(java.io.File tempFile,
LogicalName ln,
boolean isNewFile,
boolean isAppend,
boolean isNewVersion)
throws java.lang.Exception
java.lang.Exception
protected void uploadFile(java.io.File tempFile,
LogicalName ln,
boolean isNewFile,
boolean isAppend,
boolean isNewVersion)
throws java.lang.Exception
java.lang.Exception
protected LogicalName uploadLocalFile(java.io.File tempFile,
boolean isNewFile,
boolean isAppend,
boolean isNewVersion)
throws java.lang.Exception
uploadLocalFile in class NFMSSessionTestjava.lang.Exception
protected TransferReturnBean startDownload(java.io.File dFile,
LogicalName logicalName,
int version)
throws java.lang.Exception
java.lang.Exception
protected void downloadFile(java.io.File dFile,
LogicalName logicalName,
int version)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||