public class CloudFilesFileServiceProviderTest extends AbstractCloudFilesTest
| Modifier and Type | Class and Description |
|---|---|
class |
CloudFilesFileServiceProviderTest.CloudFilesBroadleafFileService |
AbstractCloudFilesTest.TestSystemPropertiesService| Modifier and Type | Field and Description |
|---|---|
static String |
CLOUDFILES_CONTAINER_SUBDIR_PROP |
configService, propService| Constructor and Description |
|---|
CloudFilesFileServiceProviderTest() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkTestFileExists(String filename) |
protected boolean |
deleteTestFile(String filename) |
static void |
setupProvider() |
void |
testFileProcesses() |
void |
testNotFoundReturnsNonExistentFile() |
void |
testRemoveAddedResourceByName() |
void |
testSiteSpecificFile() |
void |
testSubDirectory() |
void |
testSubDirectoryTree() |
void |
testSubDirectoryWithSlashes() |
protected boolean |
uploadTestFileTestOk(String filename) |
protected List<String> |
uploadTestFileWithResult(String filename) |
protected void |
verifyFileUploadRaw(String filename,
String directoryName)
Differs from
checkTestFileExists(String) in that this uses the jClouds client directly and does
not go through the Broadleaf file service API. |
findProperty, resetAllProperties, setuppublic static final String CLOUDFILES_CONTAINER_SUBDIR_PROP
public static void setupProvider()
public void testFileProcesses()
throws IOException
IOExceptionpublic void testSubDirectory()
throws IOException
IOExceptionpublic void testSubDirectoryWithSlashes()
throws IOException
IOExceptionpublic void testSiteSpecificFile()
throws IOException
IOExceptionpublic void testRemoveAddedResourceByName()
public void testNotFoundReturnsNonExistentFile()
public void testSubDirectoryTree()
throws IOException
IOExceptionprotected void verifyFileUploadRaw(String filename, String directoryName) throws IOException
checkTestFileExists(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 againfilename - the name of the file to uploaddirectoryName - directory that the file should be stored in on CloudFilesIOExceptionprotected boolean deleteTestFile(String filename)
protected boolean checkTestFileExists(String filename)
protected boolean uploadTestFileTestOk(String filename)
Copyright © 2022. All rights reserved.