> + public void testMultipartChunkedInputStream() throws > InterruptedException, IOException { > + String container = getContainerName(); > + try { > + BlobStore blobStore = view.getBlobStore(); > + long countBefore = blobStore.countBlobs(container); > + > + blobStore.createContainerInLocation(null, container); > + > + File testFile = createFileBiggerThan(PART_SIZE); > + InputStream contentToUpload = new FileInputStream(testFile); > + Blob blob = > blobStore.blobBuilder("const.txt").payload(contentToUpload).contentLength(testFile.length()).build(); > + blobStore.putBlob(container, blob, PutOptions.Builder.multipart()); > + > + long countAfter = blobStore.countBlobs(container); > + assertNotEquals(countBefore, countAfter, "No blob was created"); > + assertTrue(countAfter - countBefore > 1, "expected 2 or more parts > for a multipart blob");
Definitely run getBlob on const.txt instead of countBlobs. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/192/files#r8214833