public class S3FileServiceProviderTest extends AbstractS3Test
| Modifier and Type | Class and Description |
|---|---|
class |
S3FileServiceProviderTest.MockConcurrentFileOutputStream |
class |
S3FileServiceProviderTest.S3BroadleafFileService |
AbstractS3Test.TestSystemPropertiesServiceconfigService, propService| Constructor and Description |
|---|
S3FileServiceProviderTest() |
| 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 S3 client directly and does
not go through the Broadleaf file service API. |
findProperty, reset, resetAllProperties, setuppublic 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 S3 client directly and does
not go through the Broadleaf file service API. This will create a test file, upload it to S3 via the
Broadleaf file service API, verify that the file exists via the raw S3 client, and then delete the file
from the bucket via the file service API againfilename - the name of the file to uploaddirectoryName - directory that the file should be stored in on S3IOExceptionprotected boolean deleteTestFile(String filename)
protected boolean checkTestFileExists(String filename)
protected boolean uploadTestFileTestOk(String filename)
Copyright © 2021. All rights reserved.