nastra commented on code in PR #9849: URL: https://github.com/apache/iceberg/pull/9849#discussion_r1511224807
########## core/src/test/java/org/apache/iceberg/TestMetadataTableScans.java: ########## @@ -1357,27 +1344,27 @@ private void testPositionDeletesBaseTableFilter(boolean transactional) { (StructLike) constantsMap(posDeleteTask, partitionType).get(MetadataColumns.PARTITION_COLUMN_ID); int taskPartition = taskPartitionStruct.get(0, Integer.class); - Assert.assertEquals("Expected correct partition on task's file", 0, filePartition); - Assert.assertEquals("Expected correct partition on task's column", 0, taskPartition); - - Assert.assertEquals( - "Expected correct partition spec id on task", 0, posDeleteTask.file().specId()); - Assert.assertEquals( - "Expected correct partition spec id on constant column", - 0, - constantsMap(posDeleteTask, partitionType).get(MetadataColumns.SPEC_ID.fieldId())); - - Assert.assertEquals( - "Expected correct delete file on task", FILE_A_DELETES.path(), posDeleteTask.file().path()); - Assert.assertEquals( - "Expected correct delete file on constant column", - FILE_A_DELETES.path(), - constantsMap(posDeleteTask, partitionType).get(MetadataColumns.FILE_PATH.fieldId())); + assertThat(filePartition).as("Expected correct partition on task's file").isEqualTo(0); + assertThat(taskPartition).as("Expected correct partition on task's column").isEqualTo(0); + + assertThat(posDeleteTask.file().specId()) + .as("Expected correct partition spec id on task") + .isEqualTo(0); + assertThat(constantsMap(posDeleteTask, partitionType).get(MetadataColumns.SPEC_ID.fieldId())) Review Comment: this should be using `.containsEntry()`. Same for the other places in this PR -- 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