nastra commented on code in PR #9927: URL: https://github.com/apache/iceberg/pull/9927#discussion_r1525200236
########## core/src/test/java/org/apache/iceberg/TestTableMetadata.java: ########## @@ -1640,56 +1506,55 @@ public void testUpgradeV1MetadataToV2ThroughTableProperty() { meta.replaceProperties( ImmutableMap.of(TableProperties.FORMAT_VERSION, "2", "key2", "val2")); - Assert.assertEquals( - "format version should be configured based on the format-version key", - 2, - meta.formatVersion()); - Assert.assertEquals( - "should not contain format-version but should contain new properties", - ImmutableMap.of("key2", "val2"), - meta.properties()); + assertThat(meta.formatVersion()) + .as("format version should be configured based on the format-version key") + .isEqualTo(2); + assertThat(meta.properties()) + .as("should not contain format-version but should contain new properties") + .containsEntry("key2", "val2"); Review Comment: this isn't doing exactly what the previous assertion did (and also doesn't do what the description is saying) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org