> + 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, > + "A multipart blob wasn't actually created - " + > + "there was only 1 extra blob but there should be > one manifest blob and multiple chunk blobs"); > + assertEquals(countBefore + 12, countAfter, > + "12 parts (11 objects + 1 manifest) were expected.");
`assertEquals(countAfter, countBefore + 12, ...)` TestNG uses "actual, expected". --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/427/files#r14410414
