Class CloudFilesFileServiceProviderTest
java.lang.Object
org.broadleafcommerce.vendor.rackspace.cloudfiles.AbstractCloudFilesTest
org.broadleafcommerce.vendor.rackspace.cloudfiles.CloudFilesFileServiceProviderTest
- Author:
- Elbert Bautista (elbertbautista)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from class org.broadleafcommerce.vendor.rackspace.cloudfiles.AbstractCloudFilesTest
AbstractCloudFilesTest.TestSystemPropertiesService -
Field Summary
FieldsFields inherited from class org.broadleafcommerce.vendor.rackspace.cloudfiles.AbstractCloudFilesTest
configService, propService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckTestFileExists(String filename) protected booleandeleteTestFile(String filename) static voidvoidvoidvoidvoidvoidvoidvoidprotected booleanuploadTestFileTestOk(String filename) uploadTestFileWithResult(String filename) protected voidverifyFileUploadRaw(String filename, String directoryName) Differs fromcheckTestFileExists(String)in that this uses the jClouds client directly and does not go through the Broadleaf file service API.Methods inherited from class org.broadleafcommerce.vendor.rackspace.cloudfiles.AbstractCloudFilesTest
findProperty, resetAllProperties, setup
-
Field Details
-
CLOUDFILES_CONTAINER_SUBDIR_PROP
- See Also:
-
-
Constructor Details
-
CloudFilesFileServiceProviderTest
public CloudFilesFileServiceProviderTest()
-
-
Method Details
-
setupProvider
public static void setupProvider() -
testFileProcesses
- Throws:
IOException
-
testSubDirectory
- Throws:
IOException
-
testSubDirectoryWithSlashes
- Throws:
IOException
-
testSiteSpecificFile
- Throws:
IOException
-
testRemoveAddedResourceByName
public void testRemoveAddedResourceByName() -
testNotFoundReturnsNonExistentFile
public void testNotFoundReturnsNonExistentFile() -
testSubDirectoryTree
- Throws:
IOException
-
verifyFileUploadRaw
Differs fromcheckTestFileExists(String)in that this uses the jClouds client directly and does not go through the Broadleaf file service API. This will create a test file, upload it to CloudFiles via the Broadleaf file service API, verify that the file exists via the raw jCloud client, and then delete the file from the container via the file service API again- Parameters:
filename- the name of the file to uploaddirectoryName- directory that the file should be stored in on CloudFiles- Throws:
IOException
-
deleteTestFile
-
checkTestFileExists
-
uploadTestFileTestOk
-
uploadTestFileWithResult
-