@Test void UploadStream_NullBlob_IllegalArgumentException() throws IOException { try (InputStream stream = new FileInputStream(testFilePath)) { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStream(stream, null)); } }
void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); }
AzureStorageClient { void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); } }
AzureStorageClient { void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); }  }
AzureStorageClient { void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); }   }
AzureStorageClient { void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); }    }