nastra commented on code in PR #9994:
URL: https://github.com/apache/iceberg/pull/9994#discussion_r1531675499


##########
core/src/test/java/org/apache/iceberg/TestRewriteFiles.java:
##########
@@ -246,14 +231,13 @@ public void testAddAndDelete() {
         statuses(DELETED, EXISTING));
 
     // We should only get the 3 manifests that this test is expected to add.
-    Assert.assertEquals("Only 3 manifests should exist", 3, 
listManifestFiles().size());
+    assertThat(listManifestFiles()).hasSize(3);
   }
 
-  @Test
+  @TestTemplate
   public void testRewriteDataAndDeleteFiles() {
-    Assume.assumeTrue(
-        "Rewriting delete files is only supported in iceberg format v2. ", 
formatVersion > 1);
-    Assert.assertEquals("Table should start empty", 0, 
listManifestFiles().size());
+    assumeThat(formatVersion).isGreaterThan(1);

Review Comment:
   I think we should keep the description here, so please add 
`.as("Rewriting...")`



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