Class S3PackageStorageTest
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.s3mock.S3PackageStorageTest
Tests the S3Mock package storage.
- Author:
- Dennis Pidun, University of Hildesheim, Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
A_BUCKET
- See Also:
-
PREFIX
- See Also:
-
A_PATH
- See Also:
-
PACKAGE_NAME
- See Also:
-
PACKAGE_PATH
- See Also:
-
PACKAGE_DESCRIPTOR
- See Also:
-
api
private static io.findify.s3mock.S3Mock api -
client
private static com.amazonaws.services.s3.AmazonS3 client -
connUrl
-
-
Constructor Details
-
S3PackageStorageTest
public S3PackageStorageTest()
-
-
Method Details
-
startup
public static void startup()Creates a mock storage. -
teardown
public static void teardown()Destroys the mock storage. -
getPrefix_shouldBeSetToPrefix
public void getPrefix_shouldBeSetToPrefix()Tests whether the prefix is correct. -
listContent
public void listContent()Tests listing mixed content. -
getDownloadUrl_withValidUrl_returnsUrl
public void getDownloadUrl_withValidUrl_returnsUrl()Tests that getting a download URL with a valid URL returns an URL.
-