Class ESBlobStoreTestCase


  • public abstract class ESBlobStoreTestCase
    extends ESTestCase
    Generic test case for blob store implementation. These tests check basic blob store functionality.
    • Constructor Detail

      • ESBlobStoreTestCase

        public ESBlobStoreTestCase()
    • Method Detail

      • testContainerCreationAndDeletion

        public void testContainerCreationAndDeletion()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeRandomBlob

        public static byte[] writeRandomBlob​(BlobContainer container,
                                             java.lang.String name,
                                             int length)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readBlobFully

        public static byte[] readBlobFully​(BlobContainer container,
                                           java.lang.String name,
                                           int length)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • randomBytes

        public static byte[] randomBytes​(int length)
      • writeBlob

        protected static void writeBlob​(BlobContainer container,
                                        java.lang.String blobName,
                                        BytesArray bytesArray)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • newBlobStore

        protected abstract BlobStore newBlobStore()
                                           throws java.io.IOException
        Throws:
        java.io.IOException