>  
> -      BlobStore blobStore = view.getBlobStore();
> -      blobStore.createContainerInLocation(null, containerName);
> -      Blob blob = blobStore.blobBuilder(key)
> -         .payload(fileToUpload)
> -         .build();
> -      blobStore.putBlob(containerName, blob, PutOptions.Builder.multipart());
> +   private File createFileExactly(long fileSize, String filename) throws 
> IOException {

You an you create an in-memory test input with a ByteSource more cheaply, e.g.,

```
byte[] array = new byte[1024];
Random.nextBytes(array);
ByteSource byteSource = ByteSources.repeatingArrayByteSource(array);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/427/files#r14438698

Reply via email to