Skip to content
Permalink
Browse files
Fixed ambiguous methods in tests
  • Loading branch information
Jeremy Daggett authored and nacx committed Dec 9, 2014
1 parent e5dc6b5 commit 118f01e86c0f0bb77983f98ada43f9c9a73eff26
Showing 2 changed files with 3 additions and 3 deletions.
@@ -90,7 +90,7 @@ public void testInitiateListAndAbortMultipartUpload() throws Exception {
ContentRange.fromPartNumber(1, partSizeInMb), buildPayload(partSizeInMb * MiB));
assertThat(part1).isNotNull();
assertThat(part2).isNotNull();
assertThat(api.listParts(VAULT_NAME1, uploadId)).extracting("treeHash").containsExactly(part1, part2);
assertThat(api.listParts(VAULT_NAME1, uploadId).iterator()).extracting("treeHash").containsExactly(part1, part2);
} finally {
assertThat(api.abortMultipartUpload(VAULT_NAME1, uploadId)).isTrue();
}
@@ -351,8 +351,8 @@ public void testListParts() throws IOException, InterruptedException {
assertThat(mpu.getArchiveDescription()).isEqualTo("archive description 1");
assertThat(mpu.getMultipartUploadId()).isEqualTo(MULTIPART_UPLOAD_ID);
assertThat(mpu.getPartSizeInBytes()).isEqualTo(4194304);
assertThat(mpu).extracting("treeHash").containsExactly(HashCode.fromString("01d34dabf7be316472c93b1ef80721f5d4"));
assertThat(mpu).extracting("range").containsExactly(ContentRange.fromString("4194304-8388607"));
assertThat(mpu.iterator()).extracting("treeHash").containsExactly(HashCode.fromString("01d34dabf7be316472c93b1ef80721f5d4"));
assertThat(mpu.iterator()).extracting("range").containsExactly(ContentRange.fromString("4194304-8388607"));

assertEquals(server.takeRequest().getRequestLine(),
"GET /-/vaults/examplevault/multipart-uploads/" + MULTIPART_UPLOAD_ID + "?limit=1&marker=1001 " + HTTP);

0 comments on commit 118f01e

Please sign in to comment.