tomtongue commented on code in PR #9849:
URL: https://github.com/apache/iceberg/pull/9849#discussion_r1514762022


##########
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:
   Update the map tests with `.containsEntry()`. However each value is 
specified with the wildcard type like `capture of ?`, so the `contantsMap` 
value type needs to be changed 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

Reply via email to