HonahX commented on code in PR #11947: URL: https://github.com/apache/iceberg/pull/11947#discussion_r1916012887
########## core/src/test/java/org/apache/iceberg/TestTableMetadata.java: ########## @@ -160,31 +177,26 @@ public void testJsonConversion() throws Exception { .build()); TableMetadata expected = - new TableMetadata( - null, - 2, - UUID.randomUUID().toString(), - TEST_LOCATION, - SEQ_NO, - System.currentTimeMillis(), - 3, - 7, - ImmutableList.of(TEST_SCHEMA, schema), - 5, - ImmutableList.of(SPEC_5), - SPEC_5.lastAssignedFieldId(), - 3, - ImmutableList.of(SORT_ORDER_3), - ImmutableMap.of("property", "value"), - currentSnapshotId, - Arrays.asList(previousSnapshot, currentSnapshot), - null, - snapshotLog, - ImmutableList.of(), - refs, - statisticsFiles, - partitionStatisticsFiles, - ImmutableList.of()); + MetadataTestUtils.buildTestTableMetadata(formatVersion) Review Comment: I added a `buildTestTableMetadataWithExampleValues` similar to the one for snapshot. Now we only have to call necessary setters only in each test. -- 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