nastra commented on code in PR #9994:
URL: https://github.com/apache/iceberg/pull/9994#discussion_r1531688931
##########
core/src/test/java/org/apache/iceberg/TestRewriteFiles.java:
##########
@@ -590,25 +558,22 @@ public void
testRecoverWhenRewriteBothDataAndDeleteFiles() {
commit(table, rewrite, branch);
- Assert.assertTrue("Should reuse new manifest", new
File(manifest1.path()).exists());
- Assert.assertTrue("Should reuse new manifest", new
File(manifest2.path()).exists());
- Assert.assertTrue("Should reuse new manifest", new
File(manifest3.path()).exists());
+ assertThat(new File(manifest1.path())).exists();
+ assertThat(new File(manifest2.path())).exists();
+ assertThat(new File(manifest3.path())).exists();
TableMetadata metadata = readMetadata();
List<ManifestFile> committedManifests = Lists.newArrayList(manifest1,
manifest2, manifest3);
- Assert.assertEquals(
- "Should committed the manifests",
- latestSnapshot(metadata, branch).allManifests(table.io()),
- committedManifests);
+ assertThat(latestSnapshot(metadata, branch).allManifests(table.io()))
+ .isEqualTo(committedManifests);
// As commit success all the manifests added with rewrite should be
available.
- Assert.assertEquals("Only 5 manifest should exist", 5,
listManifestFiles().size());
+ assertThat(listManifestFiles()).hasSize(5);
}
- @Test
+ @TestTemplate
public void testReplaceEqualityDeletesWithPositionDeletes() {
- Assume.assumeTrue(
- "Rewriting delete files is only supported in iceberg format v2. ",
formatVersion > 1);
+ assumeThat(formatVersion).isGreaterThan(1);
Review Comment:
same as above
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]