> + > + BlobStore blobStore = view.getBlobStore(); > + blobStore.createContainerInLocation(null, containerName); > + Blob blob = > blobStore.blobBuilder(key).payload(sourceToUpload).contentLength(sourceToUpload.size()) > + .contentType(MediaType.TEXT_PLAIN).build(); > + blobStore.putBlob(containerName, blob, PutOptions.Builder.multipart()); > + } > + > + private ByteSource createFileBiggerThan(long partSize) throws IOException > { > + long copiesNeeded = (partSize / getOneHundredOneConstitutionsLength()) > + 1; > + ByteSource temp = ByteSource.concat(oneHundredOneConstitutions); > + > + for (int i = 0; i < copiesNeeded; i++) { > + temp = ByteSource.concat(temp, oneHundredOneConstitutions); > + } > + return temp;
Can you use `TestUtils.randomByteSource` instead? This is more efficient and succinct. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17210240