Skip to content

Commit

Permalink
Upgrade to assertj 3.23.1
Browse files Browse the repository at this point in the history
Enabled by requiring Java 8.  Also fix some minor API breakage.
  • Loading branch information
gaul committed Jul 31, 2022
1 parent aea2603 commit 16926b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,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).iterator()).extracting("treeHash").containsExactly(part1, part2);
assertThat(api.listParts(VAULT_NAME1, uploadId).iterator()).toIterable().extracting("treeHash").containsExactly(part1, part2);
} finally {
assertThat(api.abortMultipartUpload(VAULT_NAME1, uploadId)).isTrue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.iterator()).extracting("treeHash").containsExactly(HashCode.fromString("01d34dabf7be316472c93b1ef80721f5d4"));
assertThat(mpu.iterator()).extracting("range").containsExactly(ContentRange.fromString("4194304-8388607"));
assertThat(mpu.iterator()).toIterable().extracting("treeHash").containsExactly(HashCode.fromString("01d34dabf7be316472c93b1ef80721f5d4"));
assertThat(mpu.iterator()).toIterable().extracting("range").containsExactly(ContentRange.fromString("4194304-8388607"));

assertEquals(server.takeRequest().getRequestLine(),
"GET /-/vaults/examplevault/multipart-uploads/" + MULTIPART_UPLOAD_ID + "?limit=1&marker=1001 " + HTTP);
Expand Down
2 changes: 1 addition & 1 deletion project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<!-- Test dependency versions -->
<testng.version>6.8.21</testng.version>
<xmlunit.version>1.3</xmlunit.version>
<assertj-core.version>1.7.0</assertj-core.version>
<assertj-core.version>3.23.1</assertj-core.version>
<assertj-guava.version>1.3.0</assertj-guava.version>

<!-- Mock dependency versions -->
Expand Down

0 comments on commit 16926b0

Please sign in to comment.