public class S3StorageTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
A_BUCKET |
static String |
A_PATH |
static String |
A_PREFIX |
static String |
AN_INVALID_PATH |
static String |
AN_URL |
private static int |
EXPIRE_TIME |
| Constructor and Description |
|---|
S3StorageTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateDownloadUrl_forInvalidKey_returnsNull()
Generating a download IO for an invalid key shall return null.
|
void |
generateDownloadUrl_shouldAskMinio()
Generating a download IO shall be handled by MinIO.
|
void |
getPrefix_isSet()
Tests that requesting the prefix works.
|
void |
list_shouldAskMinio()
Listing shall be handled by MinIO.
|
void |
uploadFile_fileNotFound()
Tests that uploading a file correctly fails.
|
void |
uploadFile_successful()
Tests that uploading a file works.
|
public static final String A_BUCKET
public static final String A_PREFIX
public static final String A_PATH
public static final String AN_URL
public static final String AN_INVALID_PATH
private static final int EXPIRE_TIME
public void list_shouldAskMinio()
public void generateDownloadUrl_shouldAskMinio()
throws Exception
Exception - shall not occurpublic void generateDownloadUrl_forInvalidKey_returnsNull()
throws Exception
Exception - shall not occurpublic void getPrefix_isSet()
public void uploadFile_successful()
throws IOException,
io.minio.errors.XmlParserException,
io.minio.errors.ServerException,
NoSuchAlgorithmException,
IOException,
io.minio.errors.InvalidResponseException,
InvalidKeyException,
io.minio.errors.InternalException,
io.minio.errors.InsufficientDataException,
io.minio.errors.ErrorResponseException
IOException - shall not occurio.minio.errors.XmlParserException - shall not occurio.minio.errors.ServerException - shall not occurNoSuchAlgorithmException - shall not occurIOException - shall not occurio.minio.errors.InvalidResponseException - shall not occurInvalidKeyException - shall not occurio.minio.errors.InternalException - shall not occurio.minio.errors.InsufficientDataException - shall not occurio.minio.errors.ErrorResponseException - shall not occurpublic void uploadFile_fileNotFound()
throws io.minio.errors.XmlParserException,
io.minio.errors.ServerException,
NoSuchAlgorithmException,
IOException,
io.minio.errors.InvalidResponseException,
InvalidKeyException,
io.minio.errors.InternalException,
io.minio.errors.InsufficientDataException,
io.minio.errors.ErrorResponseException
IOException - shall not occurio.minio.errors.XmlParserException - shall not occurio.minio.errors.ServerException - shall not occurNoSuchAlgorithmException - shall not occurIOException - shall not occurio.minio.errors.InvalidResponseException - shall not occurInvalidKeyException - shall not occurio.minio.errors.InternalException - shall not occurio.minio.errors.InsufficientDataException - shall not occurio.minio.errors.ErrorResponseException - shall not occurCopyright © 2022. All rights reserved.