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


##########
spark/v3.4/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java:
##########
@@ -240,8 +237,12 @@ public void testEntriesTablePartitionedPrune() {
             .select("status")
             .collectAsList();
 
-    Assert.assertEquals("Results should contain only one status", 1, 
actual.size());
-    Assert.assertEquals("That status should be Added (1)", 1, 
actual.get(0).getInt(0));
+    assertThat(actual)
+        .singleElement()
+        .satisfies(
+            row -> {

Review Comment:
   Thanks for checking this, let me update this.



##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java:
##########
@@ -237,8 +237,12 @@ public void testEntriesTablePartitionedPrune() {
             .select("status")
             .collectAsList();
 
-    assertThat(actual).as("Results should contain only one status").hasSize(1);
-    assertThat(actual.get(0).getInt(0)).as("That status should be Added 
(1)").isEqualTo(1);
+    assertThat(actual)
+        .singleElement()
+        .satisfies(
+            row -> {

Review Comment:
   let me update this as well.



-- 
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