> + public void testMultipartChunkedFilenames() throws InterruptedException,
> IOException {
> + String containerName = getContainerName();
> + try {
> + BlobStore blobStore = view.getBlobStore();
> + String objectName = "file.txt";
> + long countBefore = blobStore.countBlobs(containerName);
> +
> + // we want 11 parts
> + File fileToUpload = createFileExactly(PART_SIZE * 11,
> objectName);
> + addMultipartBlobToContainer(containerName, objectName,
> fileToUpload);
> +
> + // did we create enough parts?
> + long countAfter = blobStore.countBlobs(containerName);
> + assertNotEquals(countBefore, countAfter,
> + "No blob was created");
> + assertTrue(countAfter - countBefore > 1,
Redundant check? If the following assertion is true, this is definitely true?
If we want to keep this as a special case check, perhaps
`assertNotEquals(countAfter, countBefore + 1, ...)` would be clearer?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/427/files#r14410510