Class S3PackageStorageTest


  • public class S3PackageStorageTest
    extends java.lang.Object
    Tests the S3 package storage.
    Author:
    Dennis Pidun, University of Hildesheim
    • Constructor Detail

      • S3PackageStorageTest

        public S3PackageStorageTest()
    • Method Detail

      • getPrefix_shouldBeSetToPrefix

        public void getPrefix_shouldBeSetToPrefix()
        Tests whether the prefix is correct.
      • list_withMixedContent_onlyListsPackages

        public void list_withMixedContent_onlyListsPackages()
        Tests listing mixed content.
      • getDownloadUrl_withValidUrl_returnsUrl

        public void getDownloadUrl_withValidUrl_returnsUrl()
                                                    throws java.lang.Exception
        Tests that getting a download URL with a valid URL returns an URL.
        Throws:
        java.lang.Exception - shall not occur
      • setToResultIterable

        private java.lang.Iterable<io.minio.Result<io.minio.messages.Item>> setToResultIterable​(java.util.Set<java.lang.String> objects)
        Turns a result set to an iterable.
        Parameters:
        objects - the objects to be turned to an iterable
        Returns:
        the iterable
      • validPackageListing

        private java.util.Set<java.lang.String> validPackageListing()
        Returns a set of valid package names.
        Returns:
        the package names
      • validPackageReducedListing

        private java.util.Set<java.lang.String> validPackageReducedListing()
        Returns a reduced set of valid package names.
        Returns:
        the package names